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.
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 |