Apache::AxKit::Language::HtmlDoc - deliver XHTML as PDF
AxAddStyleMap text/xhtml Apache::AxKit::Language::HtmlDoc # as last step in your processor chain, add: AxAddProcessor text/xhtml NULL # want custom HTMLDOC args? here we go: PerlAddVar AxHtmlDocOptions --linkcolor '#ff0000' --linkstyle plain
Go and get HTMLDOC (http://www.easysw.com/htmldoc/) first, then you can convert any XHTML page into a quite nice looking PDF document. Be prepared to do some tweaking of your xhtml input, though, because HTMLDOC is HTML 3.2 only, it does not yet understand CSS and only some HTML 4.0 (as of version 1.8.18). Using an extra XSLT stylesheet, it isn't all that hard to create HTMLDOC friendly input and you get nice results.
You should not use this for mostly hand-crafted PDFs, for that see the PassiveTeX module, which converts XSL:FO to PDF. HTMLDOC has its quirks, sometimes it is a bit frustrating getting the output right. It pays off if you have lots of existing (or generated) HTML and want all of them to be PDF, but for a custom PDF like a bill, you have much better control with PassiveTeX.
Jörg Walter, jwalt@cpan.org
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Jörg'. Assuming CP1252
To install AxKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit
CPAN shell
perl -MCPAN -e shell install AxKit
For more information on module installation, please visit the detailed CPAN module installation guide.