PDF Compare Converter
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,CompareCaseChangesandCompareHeaderswork the same way as in the DOCX Compare converter.
Parameters
CompareFile(file, required) - the revised PDF, compared with the original PDF inFile.CompareLevel(string, defaultword) -wordmarks whole replaced words.charactermarks only the changed letters inside a replaced word, such as5and8when1,250.00becomes1,280.00.CompareCaseChanges(bool, defaulttrue) -falsetreats a change between upper and lower case as no change.CompareHeaders(bool, defaulttrue) -falseleaves header and footer changes out of the result.OutputFormat(string, defaultpdf) -pdffor the marked-up PDF,jsonfor the list of changes.Layout(string, defaultsideBySide) -sideBySideorinline, for PDF output.PasswordandComparePassword(string) - open a password-protected original and revised PDF.
Try it out
- PDF Compare - API sandbox: pdf-to-compare