Replies: 4   Views: 3350
Pdf advanced conversion failed
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by prozesstool  · 19-11-2013 - 15:13


we own the pro plus packet, but we have still no root server to test the advanced conversion plugin. So i set up a xampp and installed OpenOffice 4. Operating System: Win7, x64.

Running OO in Headless-Mode is fine, task manager says, it is running.

Now using the \phpdocx_pro_p\examples\advanced\Transform.php gives follow output:

Fatal error: Call to undefined method Repair::repairTablesPDFConversion() in C:\xampp\htdocs\\phpdocx_pro_p\classes\ on line 95

To Fix this, i commented out line 95 as suggested here:

After this fix, i got this:

[INFO][C:\Users\meyer\AppData\Local\Temp\tempDocX_528b6f91b9fad.docx] Converting tempDocX_528b6f91b9fad.docx into tempOdt_528b6f91bdca0.odt

[ERROR][C:\Users\meyer\AppData\Local\Temp\tempDocX_528b6f91b9fad.docx] Conversion failed - Input file is not a valid Office OpenXML file Done.

Now i am helpless, what to do now?

kind regards,


Posted by prozesstool  · 19-11-2013 - 16:24

After some try and error, i can say the following:

  •  the output is from odfconverter (i read it somewhere, but proved it myself)

  •  the generated tmp-docx Files are corrupted, i can't even open them in Word

  •  odfconverter as delivered by phpdocx is woking fine on cmd level

So my guess it that the generated tmp-File is the bad boy, but i have no idea to get a valid one.

Any help would be appreciated

Posted by prozesstool  · 19-11-2013 - 16:30

  • set the option in transformDocx() of using odfconverter to false results in a blank pdf file

*why i can't edit my previous post?*

Posted by prozesstool  · 19-11-2013 - 16:55

Found the bad boy: concerning to this post

 you should also comment out the line 96, which adds something to the tmp-Document, so if NULL is added to a Word-Document it gets corrupt. !!

I just downloaded the new version with the fix in it and it works!