Forum


Replies: 3   Views: 3635
Create pdf in ubuntu
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 neiron  · 20-03-2016 - 14:55

$docx->createDocx($file_path_not_extension);
$docx->enableCompatibilityMode();
$docx->transformDocument($file_path_not_extension . 'docx',$file_path_not_extension . '.pdf');

DOCX-flie It creates good, but PDF is not created.

I don't have this classes (TransformDocAdvLibreOffice() or TransformDocAdvOpenOffice())

if ($this->_phpdocxconfig['transform']['method'] == 'libreoffice') {
                    $convert = new TransformDocAdvLibreOffice();
                    $convert->transformDocument($docSource, $docDestination, $tempDir, $options);
                } else {
                    $convert = new TransformDocAdvOpenOffice();
                    $convert->transformDocument($docSource, $docDestination, $tempDir, $options, $version);
                }

My operation system Ubuntu 15.10 and I have LibreOffice package. Please help me.