Hi,
Okay, I found the C source code for pdfreflow and looked it over, very nice job!
Do you have any plans to convert your styles from absolute margins using "px" values to relative values using either "em" or "%" as the default?
Given the page width in px is available, it would seem to be possible to scale things just before writing it to the file replacing margin-left px (and margin-right if needed) with % of width. This would allow better reflowing on smaller devices since larger fixed px margins can be a real pain for many mobile devices. If you change it just when written to the file it should change nothing else internally so no other code need change.
Is the style Rect r.width for a paragraph aware/set at all by the page width or is it simply the width of the text in the paragraph? What would be the easiest way to access the page width in the htmlprintstyle routine to make the conversions?
Thanks,
KevinH
|