Flatten Annotations is a REST API tool that collapses annotation appearances into page content and makes them no longer editable.
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-annotations-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 annotations can include both visual elements that are displayed in the document and hidden comments that are associated with these annotations. These extra comments can only be accessed with supported PDF viewers and displayed off to the side of the document. Flattening annotations preserves the visual representation of annotations directly into the content layer of the PDF and also removes these hidden comments, which may include information not intended to travel with the document. Flattening annotations is an effective way to sanitize annotation content so that what you see on the PDF is all that remains from the original annotations.
Api-Keyfield with your unique API Key
filewith the local path to your input
curl -X POST "https://api.pdfrest.com/flattened-annotations-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.