Text-level compare of two draft PDFs
Extracts text from both documents (pdftotext -layout in the pdf-tools container) and returns a per-page line diff (added/removed). Read-only — no storage mutation. Honours the org egress.allow_convert gate.
POST
/documents/pdf/compareAuthorization
AuthorizationBearer token · headerrequiredPass 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/jsonidstringrequiredother_idstringrequiredResponses
200
Diff result
successbooleandocument_aobjectShow propertiesHide properties
idstringpublic_idstringnamestringdocument_bobjectShow propertiesHide properties
idstringpublic_idstringnamestringpages_differentintegerlines_addedintegerlines_removedintegerpagesobject[]Show propertiesHide properties
Array of
objectpageintegeraddedstring[]removedstring[]