Renders the provided URL and prints it as a PDF file as it should be displayed in a Google Chrome browser. This API has two modes.
Print Mode
This mode is triggered with the default parameter. When print is set to true, the PDF file will be generated by browser's print functionality and the elements in the resulting PDF will be vectors and texts will be selectable.
Screenshot Mode
Some web pages are just not optimized for printers. So the result may be flaky. You may have no choice but to take a screenshot and then convert it to PDF. You can achieve this functionality by simply setting the print parameter to false.
The PDF will contain full page screenshots. It will scroll automatically and take a full height screenshot of your web page.
Key Features
- Simple and fast
- Easy on budget
- Able to fetch full page
- Timeout is customizable