Website to PDF
WebsitetoPDFWebsite to PDF: Website to PDF renders any public web page into a PDF document from a submitted URL. It returns a temporary signed download link, unique filename, and expiration timestamp, with paid plans adding the page count, paper size, custom margins, landscape layout and background printing control. (Cost: 40 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "WebsitetoPDF"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the website to convert to PDF | |
| format | No | Paper size | A4 |
| landscape | No | Set to true for landscape orientation | |
| marginTop | No | The top margin of the PDF in inches (e.g., 0.4) | 0.4 |
| marginLeft | No | The left margin of the PDF in inches (e.g., 0.4) | 0.4 |
| marginRight | No | The right margin of the PDF in inches (e.g., 0.4) | 0.4 |
| marginBottom | No | The bottom margin of the PDF in inches (e.g., 0.4) | 0.4 |
| printBackground | No | Print background colors and images; set false for an ink-saving document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |