OK, I've read the existing nodes, and tried some of the suggested solutions. Unfortunately, I can't seem to get quite what I need from them. The two ares I'm having difficulty with are line height and pagination.
HTMLDOC, is simple to use, allows us to leverage the current HTML-generating code, and allows pretty good control over pagination, but appears to only allow a constant line height. We're representing fractions using the vertically aligned format. In HTML, 1<br><img src="line.gif"><br>2 generates the desired effect. The generated PDF, unfortunately, appears to maintain a constant line-height, causing excess space between the numbers and the line, like so. I've tried several variations on the HTML; I can move the line around within the space, but I can't seem to get rid of it.
As for pagination, we need to be able to say "This chunk of information should stay together unless it is longer than a page". PDF::API2 appears to allow a fair amount of low level control over text formatting, and might address the previous issue, but I don't see method which would help implement this sort of logic. (For instance, a method to determine how much empty page is left, or how much space a chunk of data will take up.) Nor does it allow us to reuse as much existing code.
Does anyone know HTMLDOC tricks I'm missing? PDF::API2 tips? Other modules to investigate?
In reply to Dynamically generated HTML to PDF by menolly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |