News

phpdocx v10 release notes

  • 06 / 10 / 2020

We are pleased to present phpdocx 10. The newest major version of the library is available for download starting today. It offers a notable number of features and enhancements that we are sure will help you design and create the most impressive documents.

To get phpdocx 10, just go to Pricing and choose the license(s) you prefer.

Users with a valid LUS (License Update Service) may download this new version for free.

Users with old versions without LUS can upgrade to the latest one by going to MY PHPDOCX and clicking Upgrade To on the chosen license.

Here’s what’s new on phpdocx 10:

  • Bulk processing: get the maximum performance and flexibility when working with templates (Premium licenses only).
  • New method to import contents from an existing DOCX: importContents (Premium licenses only).
  • All PDF methods now include a new option to import and keep existing annotations (links, comments and others) (Advanced and Premium licenses only).
  • Embed fonts (Advanced and Premium licenses only).
  • New conversion plugin method based on DOMPDF (Advanced and Premium licenses only).
  • HTML Extended: new method, addBaseCSS, to apply base CSS to all imported HTML (Premium licenses only).
  • HTML Extended: new option, stylesReplacementType, to keep existing placehoder pPr and rPr styles when being replaced by HTML (Premium licenses only).
  • HTML Extended: support overwriting styles in level lists, transform HTML tabs ( ) and allow setting targets to tag contents (Premium licenses only).
  • addMathEquation now supports setting bold, color, italic and font size styles.
  • HTML to DOCX avoids using a temp folder when adding an image with PHP 5.4 or newer.
  • HTML to DOCX cleans gridCol 0 values, tables with not all widths set can be used.
  • HTML to DOCX: new option, cssEntityDecode, to use html_entity_decode to parse CSS, useful for font families with non-ASCII names.
  • HTML to DOCX: new option, forceNotTidy, to force not using Tidy. Only recommended if Tidy can't be installed
  • HTML to DOCX allows applying custom list styles to ol tags.
  • DOCX to HTML: WMF images support (Advanced and Premium licenses only).
  • Theme charts with addChart new options: theme legends (bold, italic, size, underline), grid lines (cap type, color, dash type, width) in charts using addChart (Premium licenses only).
  • Footer support when adding watermarks with watermarkDocx (Advanced and Premium licenses only).
  • The addCrossReference method now allows setting bookmark text and above/below as field content and custom modifiers.
  • New method to insert table of figures: addTableFigures.
  • New method to insert standalone WordFragment objects: addWordFragment.
  • New method to add online videos: addOnlineVideo. Only compatible with MS Word 2013 and newer (Advanced and Premium licenses only).
  • New script to check the correct configuration of the conversion plugin based on LibreOffice (Advanced and Premium licenses only).
  • New method to get the document statistics based on the msword conversion plugin (Advanced and Premium licenses only).
  • Added support for in-memory documents in DOCXPathUtilities: removeSection, splitDocx (Premium licenses only).
  • Added support for in-memory documents in importStyles and importListStyle (Premium licenses only).
  • Adding captions in images and tables support setting a custom label.
  • Added support to add a caption to a table using addTable.
  • Strict variant support (Premium licenses only).
  • PhpdocxUtilities now allows changing the INI settings dynamically.
  • DOCX to HTML: force span styles to avoid overwriting issues when document default styles are set, support zero values when using bold and italic styles, improved inheritance when applying custom paragraph and character styles, support of w:outlineLvl tags in styles to generate heading tags, added support when tcBorders tags don't have any children, improved hanging attributes and tab contents, span with a tabcontent class is used to transform tab tags (Advanced and Premium licenses only).
  • DOCX to PDF: force span styles to avoid overwriting issues when document default styles are set, support zero values when using bold and italic styles, improved margins in paragraphs to avoid extra spacings, improved inheritance when applying custom paragraph and character styles (Advanced and Premium licenses only).
  • getStatistics now returns an Exception if the stats file can't be created (Advanced and Premium licenses only).
  • New option in SignPDF to set the page number of the image (Premium licenses only).
  • Updated createDocxAndDownload to allow using '/' as directory separator on Windows.
  • Indexer extracts link contents from rels files and alt text title and description contents from images (Advanced and Premium licenses only).
  • DOCXCustomizer supports w:eastAsia when setting fonts (Premium licenses only).
  • The addChart method now allows forcing smooth option as 0.
  • processTemplate allows using singular nouns to set targets.
  • The license checking avoids throwing a notice if no $_SERVER['SERVER_ADDR'] is set.
  • Renamed show_label to showLabel to add captions.