Forum


Replies: 5   Views: 3666
Watermarking is not reproduced on pdf
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Bouillou  · 18-05-2015 - 08:40

Hello, I generate a .docx with a watermarking successfully. Then, this file is well converted to PDF but the watermarking is not reproduce. Is there any limitation to use watermarking text when converting to PDF? I am using version 4.6 with openoffice in headless mode Best regards

Posted by admin  · 18-05-2015 - 08:53

Hello, Please do the same transformation using the plugin conversion based on LibreOffice. The backgrounds don't appear in the PDF but the watermarks must appear. Regards.

Posted by Bouillou  · 18-05-2015 - 09:39

Unfortunately, I can't install LibreOffice on my server... Is it really a limitation with OpenOffice? Any workaround?

Posted by admin  · 18-05-2015 - 11:38

Hello, OpenOffice has some issues showing DOCX watermarks. Please send to contact[at]phpdocx.com your DOCX to check it. Regards.

Posted by Bouillou  · 19-05-2015 - 11:02

I have just sent the script and file to reproduce the issue. About the file, I am using a simple text fiel from the official examples. Thank you in advance for your support

Posted by admin  · 19-05-2015 - 12:30

Hello, As you can read on http://www.phpdocx.com/documentation/conversion-plugin/preparing-the-templates-for-its-conversion, the background images (this is backgrounds and watermarks) are not supported officially by the conversion plugin. The only way to export a background watermark is using the conversion plugin based on LibreOffice and an image as watermark (not a text). Examples such as http://www.phpdocx.com/img/sampleScripts/DocxUtilities/watermarkDocx/example_watermarkImage.docx show the watermark fine when exporting to PDF. OpenOffice lacks of watermark/background support. The other option, only available for Windows servers, is to use the method http://www.phpdocx.com/api-documentation/format-conversion/transform-docx-into-pdf-using-ms-word. This method supports all watermarks and backgrounds. Regards.