JayBee has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for some help with printing our companies estimates (50+ a day) using headers and footers from our website system. The header, footer and body all contain a table with several cells.
Here's a short visual:
----------------------------So the problem is that sometime the body overflows to a second page, and I need to be able to control the output, by creating a new header and footer on the next page while the body continues on, and repeat if additional pages are needed.
Now I'm allowed to eliminate the footer on the previous pages, but the header must appear on all, and footer on last page, if not all pages.
I've considered converting the body contents to an image and then reading the image's hight to help estimate the math. but I've had no luck in finding a HTML to Image converter. Closest I've got is a conversion to postscript, and I'd still be lost, since I don't even know what that is.
I do have an option to use GD to convert text to image, but I'm dealing with items that use newline characters and they all need to be fit into a fixed width cell and so a character count will not help me either.
I've found CSS3 options, which sound promising, but just learned that it's not even available yet.
Thanks in advance for any help and guidance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Document Printing Format
by hangon (Deacon) on Aug 27, 2008 at 21:10 UTC | |
by JayBee (Scribe) on Aug 28, 2008 at 05:26 UTC | |
|
Re: Document Printing Format
by jethro (Monsignor) on Aug 27, 2008 at 19:22 UTC | |
|
Re: Document Printing Format
by psini (Deacon) on Aug 27, 2008 at 20:04 UTC | |
|
Re: Document Printing Format
by apl (Monsignor) on Aug 27, 2008 at 19:11 UTC | |
by JayBee (Scribe) on Aug 28, 2008 at 05:30 UTC | |
|
Re: Document Printing Format
by JayBee (Scribe) on Aug 30, 2008 at 12:33 UTC |