News
phpdocx 17 release notes
- Sep 09, 2025
We are glad to announce the release of phpdocx 17.
This release comes with powerful new features to help you create stunning, fully customized documents faster and easier than ever. Save time, reduce effort, and supercharge your workflow.Just go to Pricing to get the license that best suits your project requirements.
Users with a valid License Update Service (LUS) may get this new version at no cost, by going to MY PHPDOCX and selecting the licence(s) they want to update.
Users with previous versions can also upgrade to the new one in the same place.
Also, we encourage you to get LUS, if you don't already have it, in order to get the next releases for free, plus other benefits, for a whole year.
The complete list features of phpdocx 17 is the following:
- Themes (Premium licenses):
- Apply theme options to contents.
- Import a theme from an external DOCX.
- Customize theme styles using DOCXCustomizer.
- Extract information with Indexer.
- PHP 8.5 support.
- Add phonetic guides using ruby contents: addRuby.
- Insert index: addIndex (Advanced and Premium licenses).
- Mark index entries to be inserted in index: markEntry (Advanced and Premium licenses).
- Get the document statistics based on the native conversion plugin (Advanced and Premium licenses).
- vAlign option to set page vertical alignment with addSection and modifyPageLayout methods.
- HTML to DOCX:
- Improved adding alpha color styles.
- Supported #rgba format to apply colors.
- Improved adding images with encoded characters in file names.
- Improved performance when adding local file images without setting a baseURL.
- Extra check to avoid a PHP Warning when adding local images and SVG, and @ (shut-up) operator is disabled.
- HTML Extended (Premium licenses):
- HTML Extended tags: phpdocx_footersection, phpdocx_headersection, phpdocx_ruby.
- List overrides support multiple sublevels.
- Native DOCX to HTML (Advanced and Premium licenses):
- Ruby tags.
- Improved transforming HTML tables with fixed widths.
- Apply "word-wrap: break-word" to td tags automatically.
- Cast values to float in the default transformSizes method.
- Cast size values to int when transforming text boxes.
- Native DOCX to PDF (Advanced and Premium licenses):
- Improved transforming HTML tables with fixed widths.
- Apply "word-wrap: break-word" to td tags automatically.
- Cast values to float in the default transformSizes method.
- JavaScript API (Premium licenses):
- Renamed to jsdocumentsdocx.
- Merge DOCX documents (Advanced and Premium licenses):
- Blip images embedded in numberings.
- Options in mergeDocxAt to regenerate the order of the merged document: reorderSections and reorderSectionsRemoveFirstSection.
- Extra check to prevent merging non-existent numbering style IDs referenced in contents or styles.
- wordFragmentOptions option to apply replacement types to WordFragment values with replaceListVariable and replaceTableVariable methods (Premium licenses).
- DOCXPath (Advanced and Premium licenses):
- occurrence option allows setting an array.
- Improved working with header and footer targets when the document include sections without headers or footers.
- getAsParagraphs option in getWordContents to handle text contents as individual paragraphs.
- Options to add floating tables with addTable: horzAnchor, vertAnchor, tblpXSpec, tblpYSpec.
- Indexer (Advanced and Premium licenses):
- Extract theme information.
- Get link rels from comments, footnotes and endnotes.
- linksContents option to get URL and text content from hyperlinks.
- Avoid returning empty text contents.
- Apply row (trPr) styles with createTableStyle: cantSplit option.
- pStyle option in captions.
- Tracking (Premium licenses):
- occurrence option allows setting an array.
- DOCXCustomizer (Premium licenses):
- theme target.
- vAlign option in section type.
- rStyle option in run type.
- occurrence option allows setting an array.
- Improved working with header and footer targets when the document include sections without headers or footers.
- docxSettings allows applying custom settings in compat tags.
- Drupal 11 module: new module to use phpdocx with Drupal 11 (Advanced and Premium licenses).
- SignPDF and SignPDFPlus (Premium licenses):
- Private key and certificate values support file and string values.
- New exceptions if private key or certificate are not valid.
- Set "docx" as the default internal extension when using DOCXStructure object as template.
- New DOCX code templates ready to use (Advanced and Premium licenses).
- Use the standard MathML namespace (xmlns="http://www.w3.org/1998/Math/MathML") as default when using transformOMMLToMathML and TransformDocAdvHTML.
- Corrections in the internal phpdoc documentation.
Update 17.0.1 - Sep 12, 2025
- Fixed path to the ZipStream class of protectDOCX and removeProtection methods in the namespaces package.
- Added w:del tag, used by Tracking methods, when cleaning inline WordFragments.
- Improved adding comments in RTL documents.