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 -> Datapublic static byte[] PagesAsImages(byte[] input, uint[] pages, double dpi, PageBox[] boxes, RgbColor color, byte quality)pub fn pages_as_images(input: Vec<u8>, pages: Vec<u32>, dpi: f64, boxes: Vec<PageBox>, color: RgbColor, quality: u8) -> Result<Vec<u8>, PagewerkError>Parameters
| Name | Type | Swift / C# |
|---|---|---|
input | Vec<u8> | input |
pages | Vec<u32> | pages |
dpi | f64 | dpi |
boxes | Vec<PageBox> | boxes |
color | RgbColor | color |
quality | u8 | quality |
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.