linearize_pdf
Linearize a PDF for faster web loading and progressive display. Provide the local file path and choose an optimization profile like web or Compress.
Instructions
Linearize a PDF file with the PDF4me API for faster web loading and progressive display. Provide the local file path to the PDF. Choose optimize_profile: web, Max, Print, Default, WebMax, PrintMax, PrintGray, Compress, or CompressMax. Optionally specify an output directory and output file name.
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": {
"file_path": "<file_path>"
},
"name": "linearize_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the PDF file to linearize. | |
| output_dir | No | ||
| optimize_profile | No | Optimization preset (see PDF4me LinearizePdf docs). | web |
| output_file_name | No |