kit/ChildSession.cpp |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 5e7401c2feea20e9405c1059c8fd4d8e5b756d6f
Author:     merttumer <[email protected]>
AuthorDate: Wed Feb 13 18:01:11 2019 +0300
Commit:     Mert Tümer <[email protected]>
CommitDate: Mon Mar 18 13:04:12 2019 +0100

    Added passing watermark text to saveAs for tiled watermark
    
    Change-Id: I2cc7c942a646a57e39d3c5862bbcc45ddfbafe4c
    Signed-off-by: merttumer <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/67780

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index 85941b08b..35144618c 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -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.
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to