By: Steven C
RTF to PDF
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!
Re: RTF to PDF
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.