News
phpdocx v14.5 release notes
- Oct 25, 2023
We are happy to announce that phpdocx 14.5, is now live and ready for download.
With phpdocx 14.5 you will get more than 50 new features, including the essential phpdocx CLI command, which will speed up your developments, support for PHP 8.3 and many more options designed to help you improve your tasks and save you time.
You can get the new version in the Pricing section. Users with a valid LUS can have it at no cost in MY PHPDOCX.
This is the full list of phpdocx 14.5 characteristics:
- phpdocx CLI command (Premium licenses):
- Speed up development by generating phpdocx code skeletons automatically.
- Skeletons generated for documents from scratch and using templates.
- Check server settings.
- Show automatic recommendations.
- Return phpdocx information.
- PHP 8.3 support.
- New addLineSignature method to add line signatures (Premium licenses).
- New addTab method to add tabs.
- Native PDF to PNG transformation in the conversion plugin (Advanced and Premium licenses).
- Indexer extracts (Advanced and Premium licenses only):
- Heading style names.
- Input fields.
- Merge fields.
- HTML to DOCX:
- Improved line breaks between input tags.
- HTML Extended: added support in stylesReplacementType when the paragraph has empty styles (Premium licenses).
- HTML Extended: phpdocx_pagenumber can be added as inline content (Premium licenses).
- DOCX to HTML (Advanced and Premium licenses):
- Improved handling left and right spacings in lists.
- Lists square as list type.
- Default left and right spacing styles applied when numberingAsParagraphs is true.
- The includeBlankSpacesInEmptyParagraphs option applies to heading tags.
- Excluded Symbol font-family in list items without a font-family.
- New excludeNotSupportedImageTypes option to exclude adding not supported image types in web browsers. Default as true.
- Clean fillColor extra information in textboxes when Theme colors are used.
- majorHAnsi and minorHAnsi font family styles are parsed and applied from the asciiTheme attribute.
- basedOn table styles.
- Exact tr height styles in tables.
- Native DOCX to PDF (Advanced and Premium licenses):
- Supported partial numbering styles.
- Clean fillColor extra information in textboxes when Theme colors are used.
- majorHAnsi and minorHAnsi font family styles are parsed and applied from the asciiTheme attribute.
- basedOn table styles.
- Exact tr height styles in tables.
- Improved center and right alignments applied to tables.
- New shapes and options in addShape: straightArrow, arrowLeft, arrowRight, customShapeType, opacity, rotation, extraShapeStyles, relativeToHorizontal, relativeToVertical.
- New option in addText to parse tabs: parseTabs.
- Tracking supported in addTab and addLineSignature methods (Premium licenses).
- setTemplateSymbol and ProcessTemplate generate a new CreateDocxFromTemplate::$regExprVariableSymbols value automatically from the placeholder symbols when needed.
- New options in addTextBox to set margins, position, z-index, relativeToHorizontal and relativeToVertical styles.
- Endnotes, footnotes and comments internal IDs are set using sequential unique values to work with DOCX readers that don't follow the OOXML standard correctly.
- Improved the parseMode option when working with placeholders added in text boxes and placeholder symbols use text box symbols.
- New escapeshellarg option in the conversion plugin based on LibreOffice to escape the source string (Advanced and Premium licenses).
- DOCXCustomizer doesn't need existing row styles when updating trPr styles (Premium licenses).
- Reordered internal XML files in the default base structure template to return Microsoft Word 2007+ mime type (Premium licenses).
- Removed a PHP Warning with PHP 8 when all body contents are deleted using removeWordContent.
- Removed a mb_convert_encoding deprecated message when transforming HTML with PHP 8.2 or newer.
- Corrections in the internal phpdoc documentation.
- Added an extra check when generating new relationships to handle DOCX documents without valid relationship contents.
- Added inline r and wp namespaces to images and links to handle DOCX documents that don't include correct default namespaces.
- The page-of type added with addPageNumber supports working as an inline WordFragment.
- Updated TCPDF to apply the latest patches available.
- Parsing a DOCX shows the file name in the Exception if a file can't be read as a ZIP file.
New in phpdocx 14.5:
setTemplateSymbol generates a new CreateDocxFromTemplate::$regExprVariableSymbols value automatically. To customize this static variable manually, CreateDocxFromTemplate::$regExprVariableSymbols must be set after calling setTemplateSymbol.