Reference · Documents and pages · lib.rs

pages_as_images Function

The pages replaced by pictures of themselves at dpi, boxes painted in color first (Flatten "Seiten als Bilder", Schwärzen picture mode).

func pagesAsImages(input: Data, pages: [UInt32], dpi: Double, boxes: [PageBox], color: RgbColor, quality: UInt8) throws -> Data

Parameters

NameTypeSwift / C#
inputVec<u8>input
pagesVec<u32>pages
dpif64dpi
boxesVec<PageBox>boxes
colorRgbColorcolor
qualityu8quality

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.