Forum


Replies: 3   Views: 2050
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.

Posted by admin  · 20-03-2016 - 15:09

Hello,

What license and version of phpdocx are you using? The conversion plugin is available only for Corporate and Enterprise licenses.

Regards.

Posted by neiron  · 21-03-2016 - 17:01

Yes, unfortunately, we use the Pro version

Posted by admin  · 21-03-2016 - 17:06

Hello,

We recommend you to upgrade to a Corporate or Enterprise license to be able to transform DOCX documents to PDF and other features such as DOCXUtilities or namespaces support.

Regards.