PDF Compare Converter

P
Paulius
ConvertAPI

The new PDF Compare converter compares two versions of a PDF and marks every inserted, deleted, replaced and moved word. The result is a marked-up PDF, side by side or inline, or a JSON list of the changes.

Highlights

  • Each PDF is read as one stream of words, so text that only moved to another line, column or page is no change. One inserted word is one change, however far the text after it reflows.
  • Deleted text is struck red, inserted text is green, and a passage of at least 4 words that moved elsewhere is purple. Headers, footers and footnotes are compared apart from the body, and header and footer changes are orange.
  • Side by side, the default, starts with summary pages that list every change, followed by each original page next to its revised page.
  • Inline gives the revised PDF with the changes marked on its pages, a printable comment on each change and the summary pages at the end. The marks are page content, so viewers without comment support show them too.
  • JSON lists each change with its type, pages, old and new text, and position, plus the totals per type.
  • Scanned PDFs are compared through their searchable text layer. A PDF with no text, or two unrelated PDFs, return an error.
  • Only text is compared, not images, colors or formatting.
  • CompareFile, CompareLevel, CompareCaseChanges and CompareHeaders work the same way as in the DOCX Compare converter.

Parameters

  • CompareFile (file, required) - the revised PDF, compared with the original PDF in File.
  • CompareLevel (string, default word) - word marks whole replaced words. character marks only the changed letters inside a replaced word, such as 5 and 8 when 1,250.00 becomes 1,280.00.
  • CompareCaseChanges (bool, default true) - false treats a change between upper and lower case as no change.
  • CompareHeaders (bool, default true) - false leaves header and footer changes out of the result.
  • OutputFormat (string, default pdf) - pdf for the marked-up PDF, json for the list of changes.
  • Layout (string, default sideBySide) - sideBySide or inline, for PDF output.
  • Password and ComparePassword (string) - open a password-protected original and revised PDF.

Try it out