Actions3
Add Images
AI-generatedSummary
Add one or more images (PNG or JPG) to specific pages of an input PDF binary, positioning and optionally scaling, rotating, and adjusting opacity for each image.
Inputs
- Input PDF Field (required) — Name of the binary field containing the input PDF to modify (default is 'data').
- Output Field Name (required) — Name of the binary field to write the modified PDF with added images to (default is 'data').
- Image Entries (required) — One or more image entries each specifying an image binary field (PNG or JPG), target page number (1-based, or 0 for all pages), X and Y positions, Y origin (from top or bottom), width and height in points (0 to keep original), opacity (0 to 1), and clockwise rotation in degrees.
Output shape
a list of items each containing JSON and binary data fields
Each output item corresponds to an input item with the PDF modified by adding images as specified. The binary field named by 'Output Field Name' contains the resulting PDF data. The JSON includes metadata flags like 'pdfModified', 'pageCount', and 'imageEntriesAdded'. Errors for individual items appear as 'error' in the JSON if 'Continue On Fail' is enabled.