Reference · Documents and pages · lib.rs

compare_report Function

The report PDF (Pro): the list, then each page pair with the changes marked.

func compareReport(old: PdfDoc, new: PdfDoc, title: String, changes: [CompareChange], lang: String) throws -> Data

Parameters

NameTypeSwift / C#
oldPdfDocold
newPdfDocnew
titleStringtitle
changesVec<CompareChange>changes
langStringlang

Returns

Vec<u8>

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.