Add to PDF is a REST API tool that inserts new content, such as an image, into a PDF document at a precise location on a selected page without disrupting the underlying PDF content.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!to receive your free API Key.
curl -X POST "https://api.pdfrest.com/pdf-with-added-image" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
The response for your API Call will display here.
The Add to PDF API Tool makes it easy to add new content to a PDF exactly where you need it. Select the PDF page and set the x and y coordinates to precisely position your new content using standard PDF units and the native PDF coordinate system. With exactly 72 PDF units per inch, you can easily fine-tune your placement.
Quickly and easily create custom PDFs ready to print uniquely for each customer, user, or recipient of your document. Automate and streamline your workflow for adding variable data to template PDFs, including personalized logos, photos, and user information. Add to PDF "stamps" content right where you need it without modifying the underlying content of the PDF. Whether you need to add your customers' business logos to their invoices or addresses onto envelopes, the Add to PDF API Tool makes it easy.
The Add to PDF API Tool supports a wide range of the most common graphic image formats. This one, simple tool allows you to add any of the following types of images to a PDF, with high-quality preservation of color accuracy and resolution:
Api-Keyfield with your unique API Key
filewith the local path to your input
curl -X POST "https://api.pdfrest.com/pdf-with-added-image" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \ -F "file=@../Sample_Input/ducky.pdf" \ -F "image_file=@../Sample_Input/strawberries.jpg" \ -F "output=example_out" \ -F "x=10" \ -F "y=10" \ -F "page=1"
image_fileparameter allows you to select a local image to be uploaded to pdfRest’s processing server.