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:
merttumer 2019-02-13 18:01:11 +03:00 committed by Mert Tümer
parent 58eab0bbb5
commit 5e7401c2fe

View file

@ -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.