SLUG Mailing List Archives
Re: [SLUG] howto convert html to pdf?
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] howto convert html to pdf?
- From: "Steve Lindsay" <stephen.a.lindsay@xxxxxxxxx>
- Date: Wed, 15 Nov 2006 09:06:46 +1100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rRIYf4RA/ZnyjH9L4/0UHjWA2VCHBnzBpct3yDcmRolfSTLzXi1GQ9ktS4s1G1jVhFt5CH/625wBqMdD+fqwiXpiloc2xwltQpxiGC9EY5Dh/AGLNiDoxge8Te6fPUE2I0NqOq2BBiMIqJL9+txQR2Xm/sr+JjsTFv61H3SQN3w=
On 11/14/06, Sonia Hamilton <sonia@xxxxxxxxxxxx> wrote:
I (well my boss actually) want to convert several hundred html pages to
pdf - what's the easiest way to do this? Any pointers, ideas?
We're using Apache FOP for html -> pdf conversion. It might be
slightly more involved than the other tools people have suggested,
however it will give you a lot of control over the final pdf (via
xslt). We looked at some of the single-shot command line tools and
found that fop produced nicer documents, albeit with a few more steps.
It's Java though, this may or may not be an issue for you.
Link below gives some examples of how to use it from the command line,
as well as in code.
Home page is at http://xmlgraphics.apache.org/
If you do use it, grab the latest version, handles tables etc. much better.