27
16
I'm looking for a way to convert a webpage to PDF, but preserving the webpage's look. Also preserving webpage's text (being selectable), searchable [Generating image screenshot for the webpage would make text neither selectable nor searchable].
I'm looking for printing the webpage to PDF as is (as on web browser) without any manipulation on style or alignment, or loss of any webpage's static components.
This would help preserving offline copies of webpages that are easily readable, annotateable and searchable.
You don't need to read any of below (Question is just the above section) in order to get my question. The following section is just listing of what I've got through research or others' answers in a nested way in order to reach an answer for the question.
Research Outcomes (Suggestions that didn't solve my problem)
Outcomes till now on trying to find a solution (All still not working as a solution for this question)
I've tried these PDF web printing engines but all manipulate pages' look, more even damaging and making some hardly readable: (Example page screenshots are included in square brackets)
- Chrome [Original, Print Styles (Disabled | not Disabled)]
- Firefox [Original, Print Styles (Disabled p1,p2 | not Disabled p1,p2)]
- Readability
- It simplifies the webpage (which is a good thing for focused reading–However, this isn't what I'm looking for). I'm looking for keeping all the webpage's positions/styles properties as seen on Web Browser in a PDF format without any manipulation.
- Foxit Reader
- NovaPDF
- CutyCapt [Original, Zoom Factor: 0.4: Screenshots, Outputted PDF]
- I'll add links after I solve program's running issues on Windows"
- wkhtmltopdf [Original, Zoom Factor: 0.4: Screenshots, Outputted PDF]
- It doesn't support CSS3.
All webpage screenshot image capturing plugins (e.g. Abduction, Awesome Screenshot, Fireshot, Firefox Screenshot Developer Tool, Full Page Screen Capture, Page2Images, web-capture, ...) don't answer my question, because they don't preserve text and links.
Scrible is great at preserving webpages as is for further annotation and research, but unfortunately still online and without conversion to PDF format.
There are two other questions on the community similar somehow to mine, however, this one is different a little bit but with those important distinctions:
- How to get WYSIWYP (print what you see) in a web browser?
- This question asks about a way to capture a webpage (as seen on screen) anyway even if it's an image and text won't be preserved. Whereas, I'm looking for capturing text and links also (importantly preserve text and links).
More Similar questions where preserving text and links isn't a requirement (pages are captured as image screenshots mostly):
- Print From Browser Using Screen CSS?
- It asks about disabling print styles, which seems it doesn't help from the above screenshots.
Notes
OS: Windows 10
If you want to print from a browser you first have to disable any print stylesheets to maintain the web page's screen appearance. – DavidPostill – 2016-04-12T15:25:42.890
See How to get WYSIWYP (print what you see) in a web browser?. See my answer to that question.
– DavidPostill – 2016-04-12T15:26:50.397Then you can print using CutePDF writer.
– DavidPostill – 2016-04-12T15:27:53.183@DavidPostill It seems that disabling print styles either doesn't work or it doesn't effect the browser to display PDF correctly. An example screenshots have been added to the edited version of the question. – Omar – 2016-04-12T19:11:51.770
I had the same question today and this page helped me (although the output was a mobile version of the page): https://stackoverflow.com/questions/9540990/using-chromes-element-inspector-in-print-preview-mode/
– MicroMachine – 2018-05-17T19:58:04.983