Forum


Replies: 7   Views: 4663
Pdf conversion and download
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 davelavinsky  · 21-04-2016 - 10:58

Im using Coporate 5.5. My code goes like this :

if (isset($_GET['output']))
{
    if ($_GET['output'] == "pdf")
    {
        $docx->enableCompatibilityMode();
        $docx->createDocx('temp/Business Plan');
        $docx->transformDocument('temp/Business Plan.docx', 'temp/Business Plan.pdf');
    }
    else
     $docx->createDocxAndDownload('temp/Business Plan');
}
else
 $docx->createDocxAndDownload('temp/Business Plan');

1. No PDF found in temp folder.

2. Is there a transformDocumentAndDownload like in createDocxAndDownload ?