Forum


Replies: 2   Views: 2710
Problem with parsestyles and libreoffice
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 alixon  · 15-03-2017 - 16:08

1. I create a new blank document (LibreOffice 5.3.03) add some text and save it as docx

2. I try the example code for parseStyles

3. I get the followin error:Error while extracting the numberings to be parsed from the external docx

Any ideas?

Thanks Andreas

Posted by admin  · 15-03-2017 - 16:18

Hello,

All DOCX files must have a numbering.xml file. You can solve it using two approaches:

· Add a list in the LibreOffice DOCX to force this program to force the program to create this file.

· Set the DOCX as base template using CreateDocxFromTemplate instead of CreateDocx. Using this class, If there's no numbering file, it will generate a new one.

Both approaches should work fine.

Regards.

Posted by alixon  · 16-03-2017 - 09:30

Hi admin
Thanks for the reply. Approache one works. The second one with creating the docx from template which would be the prefered one does not work.