Reference · Documents and pages · lib.rs

pixel_changes Function

Where two page pictures differ (boxes on the new page).

func pixelChanges(old: PdfDoc, oldPage: UInt32, new: PdfDoc, newPage: UInt32) throws -> [DisplayRect]

Parameters

NameTypeSwift / C#
oldPdfDocold
old_pageu32oldPage
newPdfDocnew
new_pageu32newPage

Returns

Vec<DisplayRect>

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.