|
Posted by J.O. Aho on 11/23/06 18:05
Christoph Burschka wrote:
> Hi,
>
> On my site, I would like to provide a feature that allows content (in this case
> articles or forum topics) to be exported as a PDF file.
>
> So far, I am planning to do this by first translating the html content into
> LaTeX and then using pdflatex (with a system() command) to create the pdf.
>
> But I don't like the fact that I need to use temp files for this - pdflatex will
> only work with input and output files, which means I have to create the .tex
> file, run pdflatex, then read and print the .pdf file and delete both.
>
> Do you know of anything that would allow me to print the pdf output directly
> from the input I have - or even a way to avoid having to translate it into LaTeX?
>
> The server load is not a problem, as the site is not heavily used - otherwise I
> might look into caching the output later on.
>
>
PDFLib allows you create pdf on the fly, but you have to formate things
yourself, you can't relay on how things looks on the web-page.
Used it in a project I worked on, worked quite nicely.
//Aho
[Back to original message]
|