generate_pdf
Create PDF files from web pages, URLs, or HTML content with customizable layout settings for document generation.
Instructions
Generate PDF from current page, URL, or HTML content
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| url | No | ||
| html_content | No | ||
| output_filename | No | ||
| print_background | No | ||
| margin_top | No | ||
| margin_bottom | No | ||
| margin_left | No | ||
| margin_right | No | ||
| paper_width | No | ||
| paper_height | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size_kb | Yes | File size in KB | |
| success | Yes | Whether PDF generation was successful | |
| file_name | Yes | PDF filename | |
| file_path | Yes | Generated PDF file path | |
| page_count | Yes | Number of pages | |
| source_url | Yes | Source URL if applicable |