Re:Minimal PDF
by tempay on Sunday July 09, 2017 @06:36AM
(#14729151)
Printing tries to reformat the page to fit on some paper size and often removes details such as the background. Often it would be nice to make a PDF that shows a screenshot of the full current page, extensions exist for this but ntjifn natively.
[ Parent
| on HN ]
Why PDF then; it could be saved as a PNG, which an ImageMagick one-liner can turn into a PDF (or several of them into a multi-pager).
It would be good if a way was available for any application to take a full window screenshot, rather than the viewport screenshot.
PNG is an image format which is usually significantly larger than the corresponding PDF document and rendered at fixed quality. PDF is (mostly) a vector format which can be resized at will.
But "details such as the background" will probably consist of a whole lot of raster images.
Or just a block of colour which will be very efficient. If there are images they are probably jpegs and can be embedded in the PDF without any loss of quality while still keeping the quality benefits of a vector format for text.