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]public static DisplayRect[] PixelChanges(PdfDoc old, uint oldPage, PdfDoc new, uint newPage)pub fn pixel_changes(old: PdfDoc, old_page: u32, new: PdfDoc, new_page: u32) -> Result<Vec<DisplayRect>, PagewerkError>Parameters
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.