Added passing watermark text to saveAs for tiled watermark
Change-Id: I2cc7c942a646a57e39d3c5862bbcc45ddfbafe4c Signed-off-by: merttumer <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/67780
This commit is contained in:
parent
58eab0bbb5
commit
5e7401c2fe
1 changed files with 5 additions and 0 deletions
|
@ -856,6 +856,11 @@ bool ChildSession::downloadAs(const char* /*buffer*/, int /*length*/, const std:
|
|||
}
|
||||
}
|
||||
|
||||
// Hack pass watermark by filteroptions to saveas
|
||||
if ( getWatermarkText().length() > 0) {
|
||||
filterOptions += std::string(",Watermark=") + getWatermarkText() + std::string("WATERMARKEND");
|
||||
}
|
||||
|
||||
// The file is removed upon downloading.
|
||||
const std::string tmpDir = FileUtil::createRandomDir(JAILED_DOCUMENT_ROOT);
|
||||
// Prevent user inputting anything funny here.
|
||||
|
|
Loading…
Reference in a new issue