Forum


Replies: 4   Views: 5928
Template output pdf - compatibility mode error
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 weatherworks  · 18-12-2013 - 17:03

Jorge,



Thank you for your prompt reply. Unfortounately, your suggestion does not work. I tried sepearting the .docx creating code from the PDF converting code, and it still doesn't work or generate any errors.



Here is the PDF conversion code:



error_reporting(-1);



require_once '/var/www/app/phpdocx/classes/TransformDocAdv.inc';



$transform = new TransformDocAdv();

try{ $transform->transformDocument('outfile.docx','outfile.pdf'); } catch (Exception $e){

    

    echo '<p>Error Caught!</p>';

    var_dump($e);

    

}



I am certian that the www-data user has write access to the folder, because the .docx files are getting created with no problem. I am also concerned that the try/catch block is not throwing an exception and that no errors are being displayed despite the conversion function failing.