Forum


Replies: 1   Views: 966
Watermarkpdf new line
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 admin  · 05-11-2021 - 17:01

Hello,

UPDATE: phpdocx 12.5 added the following features when working with watermarks:

  • watermarkDocx allows adding multiline texts and applying bold and italic styles (Advanced and Premium licenses).
  • watermarkPdf improvements when auto centering watermarks and working with multiple sizes and orientations in the same PDF, supports setting width and height values when adding an image as watermark (Advanced and Premium licenses).

The current version of phpdocx doesn't allow adding multi line text as watermark, only a single text line can be added. We have added a task to add support in a future release of phpdocx.
An alternative approach would be generating an image using GD or ImageMagick with the multi line text and then add the image as watermark.

Regards.