Get a PDF version of the current page in the Google Chrome extension

There is code in Chromium that is used to create a PDF version of the current page before displaying it in the preview window.

Is it possible for the Chrome extension to access this API to get the PDF version of the current page?

+4
source share
2 answers

Chrome does not offer such an API for extensions.

If you want to create PDF files using Chrome, you can do this using Print > Destination > Save as PDF .

+4
source

You can use the Capture API page, which returns the page data as M HTML blob , and then convert the MTHML blob to PDF .

Literature:

Let me know if you need more information.

+2
source

All Articles