htmldoc icon indicating copy to clipboard operation
htmldoc copied to clipboard

Add an option to fit webpage on one single page

Open michaelrsweet opened this issue 19 years ago • 3 comments

Version: 1.10-feature Original reporter:

It would be nice to have an option allowing to fit a webpage to one single page (PDF or PS). My problem is that I have some text followed by an image with fixed dimensions in a HTML page. If the text is too long, the image gets skipped to the second page of the produced PDF. Since it's hard to determine the height of the text to adapt the image dimensions, htmldoc could do the job by scaling the whole page down if necessary.

michaelrsweet avatar Nov 12 '04 16:11 michaelrsweet

Original reporter: Michael Sweet

The issue with this feature is that there is no way to do it unless we render the document at least twice - the first time to determine the bounds and the second time to produce the page(s). Because of scaling issues, it is possible that we would need to rescale+reformat more than twice to get the output onto a single page.

Not sure if this feature will be implemented, but will leave open if you have any implementation ideas or want to further clarify what you would like to see HTMLDOC do.

michaelrsweet avatar Nov 22 '04 20:11 michaelrsweet

Original reporter:

For very wide tables, it would be nice to have the table squeezed onto one page instead of falling off the right edge of the page.

If squeezing isn't acceptable, how about multiple pages to cover all the horizontal content?

michaelrsweet avatar Oct 08 '08 19:10 michaelrsweet

Original reporter: Michael Sweet

Multiple horizontal pages won't happen - it throws off pagination and would make HTMLDOC a lot more complicated than necessary. Better to just insert a larger page for wide tables, if you know you have them...

Pushing to 1.10, although I still remain skeptical that we will ever implement this...

michaelrsweet avatar Nov 07 '08 05:11 michaelrsweet