Add an image (JPG, PNG, TIF, GIF) to a PDF
POST https://api.pdfrest.com/pdf-with-added-image
This request demonstrates how to add an image file (JPG, PNG, TIF, or GIF) into a PDF on a specific page. In this example, an image is inserted onto the first page of a document. The image is positioned 1 inch from the bottom edge and 1 inch from the left edge of the page.
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"", "datatype"=>"null"}, {"name"=>"image_file", "value"=>nil, "datatype"=>"null"}, {"name"=>"image_id", "value"=>"", "datatype"=>"null"}, {"name"=>"x", "value"=>"72", "datatype"=>"number"}, {"name"=>"y", "value"=>"72", "datatype"=>"number"}, {"name"=>"page", "value"=>"1", "datatype"=>"number"}, {"name"=>"output", "value"=>"pdfrest_pdf_with_added_image", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Key | string |