PHPdocx 2.3 and HTML insertion: compatibility issues with generated documents
August 26th, 2011 | Comments Off
To render HTML in a docx document generated with PHPdocx we use a documented tag called <altchunk> that permits to add content to a docx document (rtf, HTML, more …) to a word document. This tag permits that the Word’s own render engine can read and show properly this kind of content to the user.
The problem is that not every version of Word that support docx documents have support for <altchunk> and this is not an issue of PHPdocx: it’s a decision of Microsoft.
At this point,Open Office, Office for Windows 2003 with compatibility Pack and Office for Mac 2008 don´t have support for <altchunk> so any document created with any utility that use <altchunk> can render it properly (and give some error advice when is opened).
Office 2007 for Windows or higher and Office for Mac 2011 have support for <altchunk>.
But there will be a solution to add, at least, some basic HTML to docx documents that will be opened in a non-compatible Word version that will be add to PHPdocx 2.4: a new method called AddbasicHTML .
AddbasicHTML will be available on PHPdocx Pro 2.4 early september. Users of PHPdocx Pro 2.3 could ask for a Golden Master version if this issue are affecting to the deployment of PHPdocx and the documents generated.


