[suggestion] Add "By web-page size" option to the "Paper size" list
Posted: Sun Jun 08, 2025 7:11 am
When converting images to PDF using PDF-Tools, the user has the option to set the width and height of the document pages in accordance with the original images (item "By Image — Select Paper Size by Image Size"). I assume that the image resolution is taken from their metadata, and for images that do not support DPI storage — the current display data.
However, a similar function is missing in PDF-XChange Standard, which requires specifying a fixed page size from among the standard or manually specified by the user. I suggest considering the possibility of saving web pages to PDF using the page width calculated from the page width in pixels and the display DPI (this data is available to the browser), and calculating the page height dynamically depending on the length of the web page. This will save web pages in a convenient form, as close as possible to the original view, without frequent page breaks. Also, I think it would be a better solution than manually gluing "standard" pages with cropped margins or saving long screenshots with subsequent recognition (and losing links).
As a preventive measure against exceeding the 15,000,000 inch limit, it would be possible to add forced splitting of pages exceeding this limit when saving to PDF 2.0 (or smaller, in cases of use when saving earlier versions of PDF or to ensure compatibility with older software).
However, a similar function is missing in PDF-XChange Standard, which requires specifying a fixed page size from among the standard or manually specified by the user. I suggest considering the possibility of saving web pages to PDF using the page width calculated from the page width in pixels and the display DPI (this data is available to the browser), and calculating the page height dynamically depending on the length of the web page. This will save web pages in a convenient form, as close as possible to the original view, without frequent page breaks. Also, I think it would be a better solution than manually gluing "standard" pages with cropped margins or saving long screenshots with subsequent recognition (and losing links).
As a preventive measure against exceeding the 15,000,000 inch limit, it would be possible to add forced splitting of pages exceeding this limit when saving to PDF 2.0 (or smaller, in cases of use when saving earlier versions of PDF or to ensure compatibility with older software).