Reference · Documents and pages · lib.rs

compare_documents Function

Word by word from old to new; every change with its page in both.

func compareDocuments(old: PdfDoc, new: PdfDoc) throws -> [CompareChange]

Parameters

NameTypeSwift / C#
oldPdfDocold
newPdfDocnew

Returns

Vec<CompareChange>

Errors

Throws PagewerkError:

  • Unreadable: “unreadable: {message}”
  • Refused: “refused: {message}”
  • WrongPassword: “wrong password”

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.