Flatten Annotations

Flatten Annotations

Flatten Annotations is a REST API tool that collapses annotation appearances into page content and makes them no longer editable.

A bubbling flask with code brackets inside
Try Now with API Lab

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.
Parameters
Required Parameters
POST
/flattened-annotations-pdf
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" \
  
Response
The response for your API Call will display here.
Once you've sent your POST request and received a valid response, you can download your output file using the output URL.
Build Your Solution

You have document processing problems, we have Solutions. Explore the many ways pdfRest can align your documents with your business objectives.

Browse all Solutions

Why is pdfRest the best API to flatten PDF annotations?

pdfRest offers the best solution for flattening PDF annotations, because it maximizes compatibility, locks in feedback, and removes hidden comments.

Maximize Compatibility

Not all PDF viewers and processing tools handle PDF annotations in the same way. PDF annotations come in a variety of types, can be added in varying ways, and can be rendered with inconsistent results. In the worst cases, some tools or services may fail to display annoations at all.

pdfRest Flatten Annotations removes uncertainty by turning annotation objects into standard page content, ensuring they will display the same for all users. When preserving annotation appearances is key, trust the pdfRest flattening process to maximize support and compatibility.

Lock in Feedback

PDF annotations are often used to provide feedback for the underlying PDF on top of that document's content layer. This feedback travels with the document and can be further edited or modified at any point. Shapes can be moved, highlights can be adjusted, annotation text can be changed.

When you no longer want this feedback to be editable, flattening annotations is the best way to lock that feedback directly into the document and preserve it as standard page content. This supports a workflow for review, feedback collection, and feedback communication, avoiding confusion or inadvertent changes to the feedback.

Remove Hidden Comments

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.

Start from Code Examples
  1. First, you'll need an API Key - to:
    • Stay anonymous with a Guest API Key for 10 free API Calls
    • Sign up for an upgraded API Key with unlimited, continuous service
  2. Choose your programming language
  3. Copy and paste the code to your project
  4. Update Api-Key field with your unique API Key
  5. Update file with the local path to your input
  6. Run this code to send an API Call
See more code examples in our
GitHub repository
Try pdfRest with just a few clicks
Download our Postman Postman Collection
Customize Your Solution
File

The file parameter allows you to select a local file to be uploaded to pdfRest’s processing server.

Generate a self-service API Key now!

Create your FREE API Key to start processing PDFs in seconds, only possible with pdfRest.

Compare Plans
Contact Us