News

phpdocx v15.5 release notes

  • Oct 01, 2024

Great news! phpdocx 15.5, the latest version of the library, is now live and ready for download. More than fifty new features and options await you, including support for MS Word 2024 and PHP 8.4

Go to Pricing to get the license(s) that fits your project needs, and remember to add your License Update Service (LUS) to obtain future versions (plus other benefits) at no cost for a whole year.

Users with a valid LUS can have for free phpdocx 15.5 in their MY PHPDOCX section. Users with older versions may upgrade at MY PHPDOCX too.

The complete list of features of phpdocx 15.5 is the following:

  • MS Word 2024 support.
  • PHP 8.4 support.
  • JavaScript API (Premium licenses):
    • Contents: comments, cross-references, endnotes, footnotes, form elements, merge fields, simple fields, structured document tags, svg, table of figures, tabs.
    • Layouts: add background image, set background color.
    • Styles: text (caps, characterSpacing, em, emboss, noProof, position, shadow, smallCaps, textDirection, underlineColor, vanish, verticalAlign, widowControl, wordWrap).
    • Templates: replace variable checkbox, replace variable input field.
    • Get existing bookmark and numbering IDs when opening a template to avoid duplicated values in new contents.
    • Supported DOCM, DOTX and DOTM files as templates.
  • Textboxes:
    • Support inline align to set "In line with text" wrapping style.
    • New textboxStyle option to apply extra styles such as rotations.
    • New direction option to set ltr or rtl direction.
  • DOCXPath (Advanced and Premium licenses):         
    • New type: math.
  • Merge docx documents (Advanced and Premium licenses):
    • Ink contents.
    • SmartArt contents.
    • Extra check to parse numbering styles.
    • Prevent duplicated numbering IDs when calling merging methods multiple times using the same document.
    • Handle invalid OOXML IDs assigned to images in shapes.
    • Added new XML namespaces to the default numbering base XML template.
  • PDFUtilities (Advanced and Premium licenses):
    • New method to rotate PDFs.
  • New enableHugeXmlMode static function in XmlUtilities to parse huge XML contents enabling the XML_PARSE_HUGE flag (LIBXML_PARSEHUGE predefined constant).
  • Theme charts (Premium licenses):
    • New serMarkerOptions option to set marker colors, sizes and symbols.
    • Extra check to avoid throwing an error when using a not supported theme chart option with combo charts.
  • SignPDF (Premium licenses):
    • New info option to add additional information (Name, Location, Reason, ContactInfo).
  • Indexer (Advanced and Premium licenses):
    • Supported DOCM, DOTM and DOTX files.
  • Supported DOTX and DOTM files as templates.
  • HTML to DOCX:
    • Extra check to avoid a PHP notice when using an invalid text align value.
    • Removed @ (shut-up) operator to get list ids and table sizes.
    • Improved adding ordered lists as sublists when the list type is autodetected.
  • Supported dompdf 3 in the native conversion plugin (Advanced and Premium licenses).
  • New firstMatch option in tickCheckboxes.
  • Native DOCX to HTML (Advanced and Premium licenses):
    • Structured Document Tag checkboxes.
    • Plotly JS library is added only if at least one chart exists.
    • Doesn't apply margin-top in textboxes that use absolute positions.
  • Native DOCX to PDF (Advanced and Premium licenses):
    • Doesn't apply margin-top in textboxes that use absolute positions.
    • Supported landscape orientation.
  • Public setDecimalSymbol method to change the decimal symbol in the settings file.
  • DOCXStructure and in-memory DOCX documents supported in docx2txt, mergeDocxAt and rawSearchAndReplace methods (Premium licenses).
  • Added new methods and options to phpdocx CLI command (Premium licenses).
  • Improved PDF methods when working with documents that include annotations (Advanced and Premium licenses).
  • createParagraphStyle includes a headingLevel option as alias of the outlineLvl option.
  • The addChart method throws an Exception if there are no required legends or values.
  • Extra check to prevent duplicated numbering IDs when loading the same template multiple times.
  • Replace   with blank spaces when transforming MathML equations.
  • Cast to int to access object stream content indexes in PDF methods.
  • Sanitized the name parameter in addMergeField.
  • Removed @ (shut-up) operator in replaceChartData to get categories.
  • Included the w:end tag when cleaning inline WordFragments.
  • Corrections in the internal phpdoc documentation.