Server Side PDF Generation
We've got a restaurant client who has menus on their web site. The web site conte开发者_如何学Cnt is all dynamically generated from a CMS. All the menus also have links to download a PDF. Right now, it's a manual process of creating/updating the document in InDesign, exporting as a PDF and overwriting the old file on the server.
Ideally it'd be able to automatically generate a PDF that looks similar to if someone on a Mac printed and saved as a PDF.
We're looking for a way for the process to be more animated. We've looked at both f-pdf & HTML2PDF, but neither one do exactly what we want. Any ideas or suggestions?
Since you're working in PHP, have you tried TCPDF?
Use LibreOffice:
soffice.exe --headless --convert-to pdf file.xls
I advice you to use FPDF
We are using tcpdf. Its not the easiest to use but the result is pretty good.
for "generic convertions with LibreOffice/OpenOffice", see also Universal Network Objects (UNO): there are Python, Java, etc. bridges for use it. There are applications for simplify the use for convertions, see Docvert and JODConverter (jODconverter and pyODconverter).
for "HTML to PDF" using CSS2 and CSS3, see also PrinceXML, a professional conversor.
All of then can be called as web-service or exec by PHP.
精彩评论