News for hackers. Stuff that matters.
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.
Re:Minimal PDF by kazinator on Sunday July 09, 2017 @10:37AM (#14729911)
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.

Re:Minimal PDF by izacus on Sunday July 09, 2017 @12:51PM (#14730601)
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.
Re:Minimal PDF by kazinator on Sunday July 09, 2017 @01:42PM (#14730797)
But "details such as the background" will probably consist of a whole lot of raster images.
Re:Minimal PDF by tempay on Sunday July 09, 2017 @11:44PM (#14733245)
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.
Re:Minimal PDF by porker on Monday July 10, 2017 @03:41AM (#14734059)
> Why PDF then

It's nice to have the web page's text searchable without having to OCR the PNG.