Forum


Replies: 6   Views: 4729
Ordered lists appear with all items as number 1
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 tarzip  · 04-02-2014 - 05:55

Hi



ordered list with numbers 1,2,3 in docx appear as 1,1,1 in converted html documnet using conversion plugin.



It is not happening to all the ordered lists though. Some time in teh same document one ordered list appear fine while other only have number 1. for items.



 



How it can be fixed.



Thanks



 


Posted by jorgelj  · 05-02-2014 - 10:39

Hello,



Are you using OdfConverter to do the transformation?



Regards.


Posted by tarzip  · 06-02-2014 - 00:01

$doc->transformDocx($file, $destination_files_dir . DIRECTORY_SEPARATOR . $path_parts['filename'] . '.html', '/srv/www/files', array('method' => 'script', 'odfconverter' =>false) );



 



When I set true to odfconverter it takes much longer. What is the major processing difference between 2 option?



Thanks


Posted by jorgelj  · 06-02-2014 - 09:11

Hello,



OdfConverter transform the DOCX to get the best result, especially with tables and lists. It's highly recommended to use this to do the transformation.



Regards.


Posted by tarzip  · 07-02-2014 - 06:42

Hi



When I turn on the option 'odfconverter' to true phpdocx doesn't convert the doc. It just send the file path to be output as content.



How I can create log file about phpdocx?



I try to convert using command line using code https://gist.github.com/anonymous/3f7610ec2238689677e8



but I got error message https://gist.github.com/anonymous/f5e8550fc9bc0f720ea2



How I can send you the sample document?



Thanks



 


Posted by jorgelj  · 07-02-2014 - 07:56

Hello,



You can upload the document to DropBox or other service.



In this line of code:




$docx->transformDocx('example_01.docx','example_01.html',array("method"=>"direct","odfconverter"=>true));


You're missing the third parameter that is the path to the temp folder (null if system default path), and the options array is the fourth parameter.



What version of PHPDocX are you using? You can get this info in the README file.



Regards.