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 -> Datapublic static byte[] CompareReport(PdfDoc old, PdfDoc new, string title, CompareChange[] changes, string lang)pub fn compare_report(old: PdfDoc, new: PdfDoc, title: String, changes: Vec<CompareChange>, lang: String) -> Result<Vec<u8>, PagewerkError>Parameters
| Name | Type | Swift / C# |
|---|---|---|
old | PdfDoc | old |
new | PdfDoc | new |
title | String | title |
changes | Vec<CompareChange> | changes |
lang | String | lang |
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.