Browser::ScreenshotsMaker - Takes a screenshot or renders a page to PDF
Overview of the parser
Browser::ScreenshotsMaker is a tool for automated creation of web page screenshots and saving them in PDF format. The parser uses a built-in browser to load pagesA-Parser functionality allows you to save parsing settings for the Browser::ScreenshotsMaker parser for future use (presets), set parsing schedules, and much more.
Collected data
- PNG screenshot of the page
- PDF file displaying the page
Use cases
- Create a PNG screenshot
- Create a PDF file with page content
Queries
You must specify a link to the site as a query, for example:
https://a-parser.com/
Default output
Result format:
[% IF pdf != "none"; pdf; END; IF screenshot != "none"; screenshot; END; %]
Possible settings
| Parameter | Default value | Description |
|---|---|---|
| Log Screenshots | ☐ | Displays the screenshot in the log |
| Viewport Width | 1024 | Ability to specify viewport width |
| Viewport Height | 768 | Ability to specify viewport height |
| Resize Width | Ability to change width | |
| Resize Height | Ability to change height | |
| File type | png | Ability to set file type PNG/PDF |
| PDF format | A3 | Ability to set format for PDF |
| Chrome Headless | ☐ | If the option is enabled, the browser is not displayed |
| Take a full screenshots | ☐ | Screenshot of the entire page |