Forum


Replies: 3   Views: 427
Place the signature field at the left bottom and add a text instead of a image
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 rabol  · 05-09-2023 - 12:42

Hi

How can I place the signature field at the left bottom corner and add some text to it?

Posted by admin  · 05-09-2023 - 14:16

Hello,

Using the SignPDF class to sign PDF files, x and y options can be used to position the signature and the image content. Please check the options detailed on the API documentation page of the method (https://www.phpdocx.com/api-documentation/digital-signature-package/digitally-sign-docx-pdf-with-PHP).

This method requires using an image. A text can't be added as signature content instead of an image.

If needed you can use GD to generate an image adding a text (https://www.php.net/manual/en/function.imagestring.php), and then add the output image as the image signature with SignPDF.

Regards.

Posted by rabol  · 05-09-2023 - 20:17

Deleted by rabol · 06-09-2023 - 06:29

Posted by rabol  · 05-09-2023 - 20:31

Deleted by rabol · 06-09-2023 - 06:29