2 ms·
In theory CSS has specific controls for laying out the "print" format of page page so your browser's print action should do the right thing. However in practic
by kevincox 6y ago
In theory CSS has specific controls for laying out the "print" format of page page so your browser's print action should do the right thing.
However in practice many websites don't put any effort into this, which is probably an indication that they wouldn't put any effort into a custom solution either.
> I wonder how difficult it would be to write a tool that can turn a PDF into a usable webpage.
I was looking into this but it is basically impossible. Since PDF is basically a collection of images (with some "fancy" stuff on top) you can get the basics, such as text and headings, however you won't be able to do much for semantics or layout. All web-based PDF viewers I have seen just render each page to an image and put invisible text on top for copy-paste support.