notpaulmartin / PDFit

PDFit is a Chrome extension that converts a website to PDF. What you see is what you get!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDFit

PDFit is a Chrome extension to convert a website to PDF, splitting it into individual A4 pages.

What you see is what you get!

If you have ever tried printing a webpage or converting it to a multipage PDF, you've probably encountered this issue: More often than not what you end up printing looks quite different to the actual website.

This extension is for when your browser's built-in print function fails you.

How can it be that in a world of self-driving cars and quantum computers, you still can't properly print websites? That is why, together with my good friend Alexandra, I decided to tackle this very problem and develop a simple Chrome extension that enables the printing of webpages as is.

Usage

To convert the current tab to PDF, just click on the extension in your address bar and a print dialogue will open in a pop-up window. You can now either print the website or save it as a pdf.

Installation

  1. Clone the repo
  2. Open Chrome
  3. Go to chrome://extensions
  4. Enable Developer mode in the top right corner
  5. Load unpacked extension
  6. Select the directory that was created when cloning this repo

Examples

Default Chrome print dialogue PDFit print dialogue
apple.com
github.com
store.google.com

Todo

  • Dynamically slice the screenshots to completely fill the A4 pages
  • Create a logo/icon
  • Automatically open the print dialogue in new window
    • Close window once printed
  • Only capture the middle portion of the screen. That way the navbar will be captured only once.
  • Delete duplicated section at the bottom of the document

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Attributions

Logo icon made by Freepik from www.flaticon.com

About

PDFit is a Chrome extension that converts a website to PDF. What you see is what you get!


Languages

Language:JavaScript 100.0%