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]public static CompareChange[] CompareDocuments(PdfDoc old, PdfDoc new)pub fn compare_documents(old: PdfDoc, new: PdfDoc) -> Result<Vec<CompareChange>, PagewerkError>Parameters
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.