getPDFSnapshot
Capture and download web page content as a PDF using specific page IDs. Customize output with formatting options like page orientation and background printing for precise documentation.
Instructions
获取页面的PDF快照
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | PDF格式(默认A4) | |
landscape | No | 横向模式(默认false) | |
pageId | Yes | 页面ID | |
printBackground | No | 打印背景(默认true) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"format": {
"description": "PDF格式(默认A4)",
"type": "string"
},
"landscape": {
"description": "横向模式(默认false)",
"type": "boolean"
},
"pageId": {
"description": "页面ID",
"type": "string"
},
"printBackground": {
"description": "打印背景(默认true)",
"type": "boolean"
}
},
"required": [
"pageId"
],
"type": "object"
}