|  | 
  Pascal Böttcher - 2021-10-15 06:35:18Hi, nice work. I tried to get this running, but am getting a lot of errors. 
 Notice: Undefined variable: Rstyle in C:\inetpub\wwwroot\docxtohtml\wordphp.php on line 333
 
 Notice: Undefined variable: FontTheme in C:\inetpub\wwwroot\docxtohtml\wordphp.php on line 334
 
 Notice: Undefined variable: FontTheme in C:\inetpub\wwwroot\docxtohtml\wordphp.php on line 336
 
 Fatal error: Uncaught ArgumentCountError: Too few arguments to function WordPHP::findstyles(), 0 passed in C:\inetpub\wwwroot\docxtohtml\wordphp.php on line 500 and exactly 1 expected in C:\inetpub\wwwroot\docxtohtml\wordphp.php:199 Stack trace: #0 C:\inetpub\wwwroot\docxtohtml\wordphp.php(500): WordPHP->findstyles() #1 C:\inetpub\wwwroot\docxtohtml\wordphp.php(923): WordPHP->getListFormating(Object(XMLReader), '') #2 C:\inetpub\wwwroot\docxtohtml\wordphp.php(1626): WordPHP->getParagraph(Object(XMLReader), '', '', '') #3 C:\inetpub\wwwroot\docxtohtml\test.php(4): WordPHP->readDocument('sample.docx', '') #4 {main} thrown in C:\inetpub\wwwroot\docxtohtml\wordphp.php on line 199
 
 Can you have a look at that.
  Timothy Edwards - 2021-10-15 07:51:06 - In reply to message 1 from Pascal BöttcherThanks for your message. Will investigate the problem and get back to you. I forgot that the environment I was testing it under was only php 5.6.
  chris edeling - 2021-10-15 08:33:27 - In reply to message 2 from Timothy EdwardsNice idea but also waiting for PHP 7 versionWhen testing on PHP 5.6 it provided output, but paragraph numbering was incorrect and footnotes were ignored.  Let me know if I should post or email you my .docx document and the resulting html
 
 Regards
 
 Chris
  Timothy Edwards - 2021-10-15 19:41:06 - In reply to message 1 from Pascal BöttcherI have now updated the class so that it will run under php 7.3. 
 Note that there is a small change to the statement required to run the class in the default mode:-
 $text = $rt->readDocument('FILENAME');
 changes to
 $text = $rt->readDocument('FILENAME','NN');
 
 Not been able yet to test under php 7.4 due to a problem which I have raised with my web host.
  Timothy Edwards - 2021-10-15 19:55:59 - In reply to message 3 from chris edelingChris,As noted in my previous post, it will now run under (at least) 7.3.
 
 Regarding your issues, please send me your word document etc, and I will investigate them. Email is fine. Can you send them to me or do I have to make my email address more public? I would however say that I have not yet implemented footnotes (as none of my test documents had them). That is something that I will now look into and rectify.
 
 In producing this class, I found that I had to test it using a variety of Word documents from different sources, as what worked with one document, did not necessarily work correctly with another. One of the reasons is that due to the complexity of the various XML documents which make up a DOCX file, there is more that one way in doing many things.
  chris edeling - 2021-10-16 01:05:53 - In reply to message 5 from Timothy EdwardsTimothy please email me at [email protected]  cos I cant find your email address 
Chris |