Skip to main content

[archive] HTML Acubench Report files as a PDF?

  • November 20, 2009
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 09 November 2009]

Hi all,

I have a program that I've adapted to use the Acubench Report Generator to produce a "pretty" HTML report. It works very well. But...;)

When the report gets "big" (> 100 pages) then the HTML file gets HUGE. Far too big to view in a browser, or print.

So, in a fit of desperation, I broke it into many single-page HTML documents, which now works well enough, and a browser program can view then nicely.

But I need to print them, and (crucially) convert them to a single PDF. Printing them as individual pages is verrrrrry slllllllow, so I need a smarter solution.

Any ideas?

3 replies

[Migrated content. Thread originally posted on 09 November 2009]

Hi all,

I have a program that I've adapted to use the Acubench Report Generator to produce a "pretty" HTML report. It works very well. But...;)

When the report gets "big" (> 100 pages) then the HTML file gets HUGE. Far too big to view in a browser, or print.

So, in a fit of desperation, I broke it into many single-page HTML documents, which now works well enough, and a browser program can view then nicely.

But I need to print them, and (crucially) convert them to a single PDF. Printing them as individual pages is verrrrrry slllllllow, so I need a smarter solution.

Any ideas?
I'd use the single, multi-page version of the report and first run it through HTML TIDY (or some other html optimizer). That may reduce the size of the file. Then print to a PDF writer, like CutePDF, pdfFactory, or the like. When you install one of those they show up as, and are handled like, another printer. Have your program do that "print" in the background so it will be ready as a PDF when the user needs it.

[Migrated content. Thread originally posted on 09 November 2009]

Hi all,

I have a program that I've adapted to use the Acubench Report Generator to produce a "pretty" HTML report. It works very well. But...;)

When the report gets "big" (> 100 pages) then the HTML file gets HUGE. Far too big to view in a browser, or print.

So, in a fit of desperation, I broke it into many single-page HTML documents, which now works well enough, and a browser program can view then nicely.

But I need to print them, and (crucially) convert them to a single PDF. Printing them as individual pages is verrrrrry slllllllow, so I need a smarter solution.

Any ideas?
I'd use the single, multi-page version of the report and first run it through HTML TIDY (or some other html optimizer). That may reduce the size of the file. Then print to a PDF writer, like CutePDF, pdfFactory, or the like. When you install one of those they show up as, and are handled like, another printer. Have your program do that "print" in the background so it will be ready as a PDF when the user needs it.

[Migrated content. Thread originally posted on 09 November 2009]

Hi all,

I have a program that I've adapted to use the Acubench Report Generator to produce a "pretty" HTML report. It works very well. But...;)

When the report gets "big" (> 100 pages) then the HTML file gets HUGE. Far too big to view in a browser, or print.

So, in a fit of desperation, I broke it into many single-page HTML documents, which now works well enough, and a browser program can view then nicely.

But I need to print them, and (crucially) convert them to a single PDF. Printing them as individual pages is verrrrrry slllllllow, so I need a smarter solution.

Any ideas?
I'd use the single, multi-page version of the report and first run it through HTML TIDY (or some other html optimizer). That may reduce the size of the file. Then print to a PDF writer, like CutePDF, pdfFactory, or the like. When you install one of those they show up as, and are handled like, another printer. Have your program do that "print" in the background so it will be ready as a PDF when the user needs it.