TinyButStrong - the PHP Template Engine
Categories > OpenTBS general MsOffice >

RTF to PDF

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: Steven C
Date: 2014-02-26
Time: 12:24

RTF to PDF

Hello all,

I am looking for a solution to handle converting both HTML and RTF files to PDF output within PHP. I am hoping to save duplicate of effort in printing out an invoice as it appears on the webpage (with some editing). Now I've come across TinyButStrong and it looks kind of clear in that TinyButStrong can convert HTML to PDF (please correct me if I am wrong). But the problem is I can't confirm if openTBS (I take it as the right tool to be using and not TinyButStrong) can handle RTF to PDF conversion. Has anyone had any experience with converting RTF to PDF with OpenTBS?

Any steering on whether RTF to PDF with openTBS would be greatly appreciated!

Thanks,
Steven
By: Skrol29
Date: 2014-02-28
Time: 22:40

Re: RTF to PDF

Hi Steven,

OpenTBS cannot convert from a format to another. It can only help TinyButStrong to convert certain formats (essentially Ms Office and LibreOffice, not PDF).

Neither TinyButStrong nor OpenTBS can directly merge PDF template. This is because a PDF content is fixed. For example, a table cannot be extended.

For producing PDF documents, I use a HTML template merged with TinyButStrong, then I use Html2Pdf to convert it into PDF.
http://html2pdf.fr/en/default