Add to PDF
POST https://api.pdfrest.com/pdf-with-added-image
Add an image file (JPG, PNG, TIF, or GIF) into a PDF on a specific page.
(When positioning an image, distances are measured in PDF units. [1 inch = 72 PDF units])
Required form-data body parameters:
- One of:
file
- File to be uploaded and processedid
- Alphanumeric ID (UUID) of existing file on server to be processed
- One of:
image_file
- Image file to be uploaded and processedimage_id
- Alphanumeric ID (UUID) of existing image file on server to be processed
x
- Horizontal position of the image (by its lower-left corner) in PDF unitsy
- Vertical position of the image (by its lower-left corner) in PDF unitspage
- Page of the PDF to add the image into
Optional form-data body parameters:
output
- File name of output file (without file extension)
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "datatype"=>"string"}, {"name"=>"image_file", "value"=>nil, "datatype"=>"null"}, {"name"=>"image_id", "value"=>"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "datatype"=>"string"}, {"name"=>"output", "value"=>"pdfrest_pdf_with_added_image", "datatype"=>"string"}, {"name"=>"x", "value"=>"0", "datatype"=>"number"}, {"name"=>"y", "value"=>"0", "datatype"=>"number"}, {"name"=>"page", "value"=>"1", "datatype"=>"number"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Key | string |