Skip to content
Seal
Esc
↑↓navigate↵open⌘Jpreview

Flatten annotations and form fields into page content

Runs pdfengines/flatten — annotation appearance streams and AcroForm values are baked into the page bytes. Seal signature fields live in the database and are unaffected. Honours the org egress.allow_convert gate.

POST/documents/pdf/flatten
Authorization
AuthorizationBearer token · headerrequired

Pass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.

Request body
requiredapplication/json
idstringrequired
Responses
200

Flattened

successboolean
storage_idstring
page_countinteger
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.seal.nyc/api/v1/documents/pdf/flatten" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "string"
}'
Response
{
  "success": true,
  "storage_id": "string",
  "page_count": 0
}