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 -> Datapublic static byte[] ReplacePagesWithImages(byte[] input, ImagePage[] pages)pub fn replace_pages_with_images(input: Vec<u8>, pages: Vec<ImagePage>) -> Result<Vec<u8>, PagewerkError>Parameters
| Name | Type | Swift / C# |
|---|---|---|
input | Vec<u8> | input |
pages | Vec<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.