Skip to main content

Flatten PDF

ConvertFlatten PDF

The Flatten PDF API removes form controls, interactive elements, and annotations from a PDF. You send the PDF as Base64 (docContent), docName, and IsAsync. The API returns a static, non-editable PDF (or 202 + Location for async). Use the tester below to try it; more details are in the sections that follow.

Try the Flatten PDF API

Quick reference

Endpoint: POST /api/v2/FlattenPdf · Required: api-key, docContent, docName, IsAsync

Try it live

Use the form below to send your API key and PDF (Base64). The response is the flattened PDF (or polling URL when async). No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Flatten PDF?

This endpoint flattens a PDF by removing form controls, interactive elements, and annotations. You provide the PDF (Base64), docName, and IsAsync. The API returns a static PDF where form fields and annotations are merged into the page content. Returns the flattened PDF or a Location URL for async.

Key features

  • Static output – Form fields and annotations become non-editable content.
  • Single request – Send docContent, docName, IsAsync; no extra configuration.
  • AsyncIsAsync returns 202 with Location URL for polling.
Best for

Use when you need a non-editable PDF for distribution or archival. For fillable forms use Fill PDF Form or Convert Word to PDF Form.

Prerequisites

Before using this endpoint, make sure you have:

Response Format

The API returns a flattened PDF document:

  • Status 200: PDF flattening completed immediately - binary PDF content in response body
  • Status 202: Request accepted and processing asynchronously - use the Location header URL to poll for results

For asynchronous requests, poll the Location URL until status 200 is returned with the flattened PDF document.

Get Help