Forum


Replies: 3   Views: 3632
Problem creating pdf
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 irxn84  · 14-11-2015 - 09:45

HI,

I generate a docx which looks fine. But then I want to create a PDF from the docx with this code:

        $document = new TransformDoc();
        $document->setStrFile($filedest.".docx");
        $document->generatePDF($filedest.".pdf");

The pdf doesn't look anything like the docx.

I am using phpdocx version 3.7.

What am I doing wrong?

Best regards,

Peter

 

 

 

 

Posted by admin  · 16-11-2015 - 07:21

Hello,

To get the best output you need to use the conversion plugin. You can read more information on:

http://www.phpdocx.com/documentation/conversion-plugin

Regards.

Posted by irxn84  · 08-12-2015 - 13:00

Hi,

now I am trying the new version with Transform Document. But it is not working.

It seems TransformDocAdv.inc is missing.

If I run phpdocx on a webspace where I can not install my own programm, just upload scripts, will phpdocx work there with this transformation?

 

Best regards

Posted by admin  · 08-12-2015 - 13:01

Hello,

If you're using the old phpdocx 3 version please check the documentation available on http://old.phpdocx.com

Regards.