playwright_save_as_pdf
Convert web pages to PDF files by specifying output path, filename, format, and margins. Ideal for saving web content in print-ready format with optional background graphics.
Instructions
Save the current page as a PDF file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filename | No | Name of the PDF file (default: page.pdf) | |
format | No | Page format (e.g. 'A4', 'Letter') | |
margin | No | Page margins | |
outputPath | Yes | Directory path where PDF will be saved | |
printBackground | No | Whether to print background graphics |