Replies: 3   Views: 652
"native" word to pdf conversion (also word to html conversion)
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 bre-europe  · 16-04-2019 - 13:54

Thanks, that helped regarding the issues mentioned earlier, but there are more notices. Most of them in TransformDocAdvPDF.php, but also in TCPDF_lib.php.


  • Undefined index: docx_5cb5dc6c27a226_07553361, paragraph_Textkrper [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Transform/TransformDocAdvPDF.php, line 2018]


  • Undefined index: word/header1.xml [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Transform/TransformDocAdvPDF.php, line 2214]
  • Undefined index: word/header2.xml [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Transform/TransformDocAdvPDF.php, line 2214]
  • Undefined index: word/footer1.xml [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Transform/TransformDocAdvPDF.php, line 2219]
  • Undefined index: docx_5cb5dc6d21a7a1_40713843, character_Hyperlink [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Transform/TransformDocAdvPDF.php, line 2152]
  • Undefined offset: 0 [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Libs/TCPDF_lib.php, line 43855]
  • Undefined offset: -1 [/var/www/html/newton-test/newton/core/vendor/phpdocx/Classes/Phpdocx/Libs/TCPDF_lib.php, line 45234]

The line numbers in TransformDocAdvPDF.php are according to the patched version. I am afraid there are more patches needed. For the first example above, line 2018 is:

$this->css[$nodeClass] .= $this->addPprStyles($childNode);

It seems that $this->css[$nodeClass] is not initialized, which leads to the notice.

How can we proceed from this?