Forum


Replies: 1   Views: 3094
Undefined method repairpdf::repairpdfconversion()
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 elyazalee  · 14-06-2016 - 09:02

Hi

I have this error when i want make a Docx... 

 Call to undefined method RepairPDF::repairPDFConversion() in [.....]classes\CreateDocx.inc on line 3350

Can you help me ?

Posted by admin  · 14-06-2016 - 09:13

Hello,
 
In the CreateDocx.inc file these are the lines you refer:
 
if (file_exists(dirname(__FILE__) . '/RepairPDF.inc')) {
    if ($this->_compatibilityMode) {
        $contentRepair = RepairPDF::repairPDFConversion($contentRepair, '', array());
    }
}

 

 
As you can see it only run the repairPDFConversion method if the file RepairPDF.inc exists. This RepairPDF.inc file doesn't exist in phpdocx 6 PRO, maybe you have created it empty or you have copied the new version overwritting an old version of phpdocx?
Please remove any RepairPDF.inc file in the classes to remove the error.
 
We also recommend you to check the quick guide available on:
 
 
to upgrade from phpdocx 3 to the latest version of phpdocx.
 
Regards.