---
search:
  tags:
    - Documents
    - POST
seo:
  description: >-
    Extracts text from both documents (pdftotext -layout in the pdf-tools
    container) and… Reference for the POST /documents/pdf/compare endpoint in
    the Seal API.
sidebar:
  label: Text-level compare of two draft PDFs
  badge: POST
title: Text-level compare of two draft PDFs
type: openapi-operation
---
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/compare`
