Flatten Layers is a REST API Tool that collapses all PDF content spread across multiple document layers into one layer of page 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/flattened-layers-pdf" \ -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.
PDF layers can be helpful during the PDF creation process to keep related content separated and make it easy to apply further changes to each component. Once the PDF is finished, no longer intended to be edited, and ready to distribute, separate content layers may not serve the same utility for the intended viewers of the document. Flattening layers places all content together on one layer, which simplifies the document content and removes unnecessary complexity that can result in downstream workflow problems.
Api-Keyfield with your unique API Key
filewith the local path to your input
curl -X POST "https://api.pdfrest.com/flattened-layers-pdf" \ -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 "output=example_out"
file parameter allows you to select a local file to be uploaded to pdfRest’s processing server.