<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dan and Chris -- thanks. Both look promising. Any chance that
demonstration landed on the web anywhere? <br>
<br>
brian<br>
<br>
Chris Winters wrote:
<blockquote
cite="midc61247280512191058n7ab99f36gb8122d1cc905560e@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap="">---------------------------- Original Message ----------------------------
Subject: Re: [pgh-pm] PDF Generation from HTML
From: "Daniel J. Wright" <a class="moz-txt-link-rfc2396E" href="mailto:Dan@DWright.Org"><Dan@DWright.Org></a>
Date: Mon, December 19, 2005 1:50 pm
To: "brian janaszek" <a class="moz-txt-link-rfc2396E" href="mailto:bmj@anklebiter.net"><bmj@anklebiter.net></a>
--------------------------------------------------------------------------
I'm doing something like that here:
<a class="moz-txt-link-freetext" href="https://www.pairnic.com/serviceagree.m">https://www.pairnic.com/serviceagree.m</a>
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:
<a class="moz-txt-link-freetext" href="http://user.it.uu.se/~jan/html2ps.html">http://user.it.uu.se/~jan/html2ps.html</a>
2) Run ps2pdf:
<a class="moz-txt-link-freetext" href="http://www.cs.wisc.edu/~ghost/doc/AFPL/6.50/Ps2pdf.htm">http://www.cs.wisc.edu/~ghost/doc/AFPL/6.50/Ps2pdf.htm</a>
Looking through google now, I see there is also a "html2pdf"
<a class="moz-txt-link-freetext" href="http://directory.fsf.org/print/misc/html2pdf.html">http://directory.fsf.org/print/misc/html2pdf.html</a>
I'm not sure if I ever tried that or not.
</pre>
</blockquote>
<pre wrap=""><!---->
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
_______________________________________________
pgh-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgh-pm@pm.org">pgh-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/pgh-pm">http://mail.pm.org/mailman/listinfo/pgh-pm</a>
</pre>
</blockquote>
<br>
</body>
</html>