Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

(wil) Re: HTML input to PDF output

by wil (Priest)
on Jul 24, 2002 at 15:41 UTC ( #184899=note: print w/replies, xml ) Need Help??


in reply to HTML input to PDF output

Have you tried HTMLdoc? This converts HTML documents into PDF or Postscript documents preserving as much formatting as possible.

- wil

Replies are listed 'Best First'.
Re: (wil) Re: HTML input to PDF output
by Hero Zzyzzx (Curate) on Jul 24, 2002 at 16:05 UTC

    Big ups to HTMLDOC. While not a pure perl solution, it does a VERY nice job rendering HTML into PDF. It'll even keep graphics for you.

    Make a specialized header/footer for the pages that get converted to HTMLDOC to strip out all the extraneous graphic foofery.

    Try HTMLDOC. I guarantee you'll like the results, and it's open source. I use it to create PDFs on the fly in a CMS project of mine, and I'm very impressed with it's speed and the quality of the output. The author is very responsive to fixes/suggestions too.

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

Re: HTML input to PDF output
by hacker (Priest) on Jul 24, 2002 at 16:16 UTC
    I would prefer not to have to run YASC (Yet Another System Command) from this particular script. I would prefer a perl-only solution, but this may get me by in the short term, until such a solution exists. Good tip.

      Don't create them on the fly then. Pre-create them with a cron job, or only when an item is updated.

      Seriously, try out HTMLDoc. It gives very good output, and will save you huge amounts of time trying to get this to work in perl.

      -Any sufficiently advanced technology is
      indistinguishable from doubletalk.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184899]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-04-20 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?