Forum


Replies: 11   Views: 5374
How to install phpdocx in yii2?
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 IncodisPM  · 09-03-2016 - 13:36

How to install phpdocx in yii2?

Posted by admin  · 09-03-2016 - 14:40

Hello,

As you're using a Corporate license, you just need to download the namespace package. In this package you may find the folder plugins, where you can read the instructions to integrate phpdocx with any Composer project.

Regards.

Posted by IncodisPM  · 10-03-2016 - 06:29

But inside plugins folder, i found only 2 folders drupal and wordpress. I want to integrate it in Yii2, Please help.

Posted by admin  · 10-03-2016 - 08:02

Hello,

You need to download the namespaces package, if you only see drupal and wordpress plugins it's because you have downloaded the classic package.

Regards.

Posted by IncodisPM  · 10-03-2016 - 10:35

Thanks, 1 more question:

Can i convert ms-word document to html file using this library? if yes, how?

Posted by IncodisPM  · 11-03-2016 - 11:00

hi,

i am geting com_exception : "Failed to create COM object `word.application': CoInitialize has not been called", while creating word to html file, Could you please suggent any solution?

Posted by admin  · 11-03-2016 - 11:32

Hello,

You're writting by email the same messages you're posting, please use a single way to send your questions. We have replied your latest question by email.

Regards.

Posted by IncodisPM  · 15-03-2016 - 07:46

Hi,

We have resoved the com object error, but now a new error occurs in MSWordInterface.inc file :

Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Word<br/><b>Description:</b> The requested member of the collection does not exist.' in D:\wamp\www\PHPWord\Classes\Phpdocx\Converters\MSWordInterface.inc on line 62

Please help.

Posted by admin  · 15-03-2016 - 07:59

Hello,

That's a generic error from PHP COM, not from phpdocx.

We recommend you to follow this guide:

http://www.phpbuilder.com/columns/venkatesan20030501.php3

and using the PHP CLI mode run the most simple example you can find on:

http://php.net/manual/en/class.com.php

There must be some permission missing on yoour Window server. We also recommend you to read the topic available on http://www.phpdocx.com/en/forum/default/topic/961

And as explained previously, you're not using the conversion plugin recommended on http://www.phpdocx.com/documentation/conversion-plugin

Regards.

Posted by IncodisPM  · 15-03-2016 - 15:37

Hi,

I have done some changes as per the suggested links, but not get sucess. However i have found error:

"Unable to load dynamic library 'D:/wamp/bin/php/php5.6.16/ext/dcom.so' - The specified module could not be found."

in my php_error.log file.

Could you please suggest anyting.

Thanks and Regards

Posted by admin  · 15-03-2016 - 16:33

Hello

That's a PHP error, not from phpdocx. You're trying to load a dynamic library, dcom.so, that doesn't exist. And Windows doesn't use SO libraries but DLL.

We recommend you to check the PHP COM module installation and do the simplest test using the PHP CLI mode. For further support please write to contact[at]phpdocx.com.

Regards.