Export to word

ve a custom table for outgoing documents, and I would like to achieve the following:

  1. If the outgoing document is in Word format, I want to automatically insert a barcode image into a specific location inside the Word file. Is this possible within the PHPMaker project? Is there any supported way to inject an image into a Word file through code or plugins?
  2. I would also like the generated Word file to have better formatting, including a header and footer as images.

Is it possible to achieve this using PHPMaker? And if custom code is needed, what are the recommended steps?

phpMaker utilizes the PHPOffice framework:

take a look at: PHPOffice ยท GitHub

With PHPWord, you can create OOXML, ODF, or RTF documents dynamically using your PHP scripts. Below are some of the things that you can do with PHPWord library:

  • Insert and format images, either local, remote, or as page watermarks

Also read Customizing Export (v2021).