pdf_add_annotations_images_fields
Add annotations, images, and fields to PDFs, including text, shapes, links, and form filling. Modify PDFs and scanned documents with customizable properties for text, fonts, positioning, and more.
Instructions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
annotations | No | Array of annotation objects to add text, links, shapes, etc. Each object can have: 'text' (string), 'x' (number), 'y' (number), 'size' (number), 'pages' (string), 'color' (string hex), 'link' (string URL), 'fontName' (string), 'fontItalic' (boolean), 'fontBold' (boolean), 'fontStrikeout' (boolean), 'fontUnderline' (boolean). (Optional) | |
api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) | |
encrypt | No | Encrypt output file. (Optional) | |
expiration | No | Set the expiration time for the output link in minutes. After this specified duration, any generated output file(s) will be automatically deleted. (Optional) | |
fields | No | Array of form field objects to fill PDF form fields. Each object can have: 'fieldName' (string), 'pages' (string), 'text' (string), 'fontName' (string), 'size' (number), 'fontBold' (boolean), 'fontItalic' (boolean), 'fontStrikeout' (boolean), 'fontUnderline' (boolean). (Optional) | |
flatten | No | Flatten filled form fields and annotations into PDF content. Set to true to disable editing of filled form fields in the output PDF. (Optional) | |
httppassword | No | HTTP auth password if required to access source url. (Optional) | |
httpusername | No | HTTP auth user name if required to access source url. (Optional) | |
images | No | Array of image objects to add images to PDF. Each object can have: 'url' (string), 'x' (number), 'y' (number), 'width' (number), 'height' (number), 'pages' (string). (Optional) | |
name | No | File name for the generated output. (Optional) | |
password | No | Password for the PDF file. (Optional) | |
url | Yes | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |