Reference · Documents and pages · lib.rs

redact_areas Function

Schwärzen without turning pages into pictures: covered glyphs leave the content stream, boxes go on top.

func redactAreas(input: Data, areas: [RedactArea], color: RgbColor) throws -> RedactOutcome

Parameters

NameTypeSwift / C#
inputVec<u8>input
areasVec<RedactArea>areas
colorRgbColorcolor

Returns

RedactOutcome

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.