Reference · Documents and pages · lib.rs

replace_pages_with_images Function

Schwärzen: replace each page by a JPEG of itself with the boxes burnt in.

func replacePagesWithImages(input: Data, pages: [ImagePage]) throws -> Data

Parameters

NameTypeSwift / C#
inputVec<u8>input
pagesVec<ImagePage>pages

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.