Forum


Replies: 5   Views: 164
How to add watermark on .doc file
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  · 12-08-2024 - 05:50

Hello,

You need to use the conversion plugin based on LibreOffice or MS Word to convert from DOC to DOCX.

On https://www.phpdocx.com/documentation/conversion-plugin you can read all information about the conversion plugin and samples. In the package (examples/FormatConversion/transformDocument folder) you can find samples using it.

For example, if you have installed the conversion plugin based on LibreOffice, you can transform a DOCX to PDF:

$docx->transformDocument('document.docx', 'document.pdf', 'libreoffice');

or a DOC to DOCX:

$docx->transformDocument('document.doc', 'document.docx', 'libreoffice');

or a DOCX to DOC:

$docx->transformDocument('document.docx', 'document.doc', 'libreoffice');

And all other supported document types.

Regards.