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 -> RedactOutcomepublic static RedactOutcome RedactAreas(byte[] input, RedactArea[] areas, RgbColor color)pub fn redact_areas(input: Vec<u8>, areas: Vec<RedactArea>, color: RgbColor) -> Result<RedactOutcome, PagewerkError>Parameters
| Name | Type | Swift / C# |
|---|---|---|
input | Vec<u8> | input |
areas | Vec<RedactArea> | areas |
color | RgbColor | color |
Returns
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.