Prepare Attachment
prepare_attachmentConvert PDFs into image attachments Manager accepts as evidence. Rasterizes every page, optionally combines pages of one document into a single image, and returns image paths.
Instructions
Turn a file into something Manager will accept as evidence. Manager's Image field silently rejects PDFs, so ALWAYS run this on any PDF before attaching it: it rasterises every page and returns the image paths. Images pass through untouched. combine='vertical' (or 'horizontal') joins the pages of ONE document — a statement, a contract — into a single image, which is the right shape when the pages are one document. Leave combine='none' when the PDF holds several different documents, and never merge two different proofs into one image: each proof is its own attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| combine | No | none | |
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||