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?
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 .
Print > Destination > Save as PDF
You can use the Capture API page, which returns the page data as M HTML blob , and then convert the MTHML blob to PDF .
Let me know if you need more information.