in reply to Re: Dynamically generated HTML to PDF
in thread Dynamically generated HTML to PDF

Unfortunately, the data in question is not, so far, rendering correctly with HTMLDOC -- see the screenshots in my original post. Would a2ps give the control over both line height and pagination that we need? And would it allow us to present the content to the user without generating the file on disk? (This is not a requirement, but is strongly preferred.)
  • Comment on Re: Re: Dynamically generated HTML to PDF

Replies are listed 'Best First'.
Re: Re: Re: Dynamically generated HTML to PDF
by ronzomckelvey (Acolyte) on Sep 26, 2003 at 21:56 UTC
    Hi.. Checking the man a2ps it lets you set the font size, lines per page and all other types of formating, including multiple pages on one physical page.

    I only create the new $tmp2 file for memory sizing issues, this way there's no limit on how big of a file it can convert. I orginally had it all in memory..

    You can deceide if it's good enough to do what you need just from the command line, run the htmldoc with your options till you get it the way you like and make your Postscript file, then ps2pdf (Ghostscript) to make a PDF.

    Perl is the greatest for tying all this stuff together!

    ronzo