[pgh-pm] [Fwd: Re: PDF Generation from HTML]

Chris Winters chris.winters at gmail.com
Mon Dec 19 10:58:32 PST 2005


> ---------------------------- Original Message ----------------------------
> Subject: Re: [pgh-pm] PDF Generation from HTML
> From:    "Daniel J. Wright" <Dan at DWright.Org>
> Date:    Mon, December 19, 2005 1:50 pm
> To:      "brian janaszek" <bmj at anklebiter.net>
> --------------------------------------------------------------------------
>
> I'm doing something like that here:
>
>   https://www.pairnic.com/serviceagree.m
>
> The "dowload pdf version" link generates a pdf copy of the page
> dynamically whenever you click on it.  This ensures that we don't make a
> change to the HTML version and forget to update PDF at the same time.
>
> Whenever I was researching this, I really couldn't find any good Perl
> modules that do this sort of thing.  :(    The problem with the things
> that I fould were that they wanted translate the HTML into some sort of
> image format and then stick that image into the pdf document.   This led
> to a lossy conversion.
>
> I eventually settled on a non-perl solution.  It was a two-step process:
>
> 1) Run html2ps:
>
>   http://user.it.uu.se/~jan/html2ps.html
>
> 2) Run ps2pdf:
>
>   http://www.cs.wisc.edu/~ghost/doc/AFPL/6.50/Ps2pdf.htm
>
>
> Looking through google now, I see there is also a "html2pdf"
>
>   http://directory.fsf.org/print/misc/html2pdf.html
>
> I'm not sure if I ever tried that or not.


FWIW, I demonstrated the tools used by Dan at the meeting last
Wednesday when rendering an invoice from HTML to PDF.

I think I tried the html2pdf but it didn't do tables as I wanted, or
something like that. It was a while ago (~2+ years?) so it may be
worth checking out.

Chris


More information about the pgh-pm mailing list