Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to fit webpage on one single page #49

Open
michaelrsweet opened this issue Nov 12, 2004 · 3 comments
Open

Add an option to fit webpage on one single page #49

michaelrsweet opened this issue Nov 12, 2004 · 3 comments
Labels
enhancement New feature or request priority-medium
Milestone

Comments

@michaelrsweet
Copy link
Owner

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
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

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 michaelrsweet added the enhancement New feature or request label Mar 3, 2017
@michaelrsweet michaelrsweet added this to the Future milestone Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-medium
Projects
None yet
Development

No branches or pull requests

1 participant