Forum


Replies: 2   Views: 5804
Rtf to pdf conversion, shows blank pdf page
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 suyog.kale@anzu.org  · 26-05-2014 - 07:16

Hi,



 



There is bug while converting rtf contents to PDF, Need your help to resolve:



 



We tried with following approach to convert rtf to pdf but the final PDF shows blank page, this  is happening almost with all the rtf files:




  • Create new CreateDocx()

  • Add plain text to docx using $docx->addText($docItem->streamData);

  • Add RTF file using method $docx->addRTF(array('pathRTF' => $current_file));

  • Then save to docx file

  • Then transform docx to pdf using $docx->transformDocx($file,$result,$this->outputFolder);



 



Please find attached sample rtf files.



 



We can’t directly convert RTF TO PDF as we want to add some plain text as start of page and then rtf contents.



 



Regards,



Suyog Kale