Although one can easily introduce real checkboxes in a Word document generated by PHPDocX via the embedHTML method (just include the corresponding web form and form elements in the HTML code to be parsed and inserted), sometimes it may be useful just to include a checkbox like one includes a plain symbol in teh MS Word interface.
PHPDOCX code samples
How to remove a particular paragraph or a whole (sub)chapter from an existing Word document with PHPDocX.
Replace text of an existing Word document, preserving styles, with PHPDocX.
Learn how to extract specific HTML content using selectors to insert it in a Word document.
How to use COM for format conversion with PHPDocX on Windows platforms.
Learn how to embed HTML into a Word document using PHPDocX.
This is an advanced example of how to use PHPdocx to create a complete Report.
The code is commented to make easy to understand how it works:
This information is outdated, please, refer to the PHPDocX API documentation for up to date info.
Do you want multiple and name-customized documents from only one code?
This example shows you how to create multiple documents customized for each user with only one code:
This information is outdated, please, refer to the addPageNumber documentation for up to date info.
Do you need to include page numbers in the Word document footer?
Learn how to do it with this sample code: