add_margin_to_pdf
Add custom margins to a PDF by providing a file path and optional millimeter values for left, right, top, and bottom. The modified PDF is saved to disk.
Instructions
Add margins to a PDF using the PDF4me AddMargin API. Provide a local PDF path and optional margins in millimeters (margin_left/right/top/bottom, 0-100). Saves the resulting PDF to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin_top | No | ||
| output_dir | No | ||
| margin_left | No | ||
| margin_right | No | ||
| margin_bottom | No | ||
| pdf_file_path | Yes | ||
| output_file_name | No | ||
| request_doc_name | No |