Reference · Documents and pages · lib.rs

extract_pages Function

No description yet.

func extractPages(input: Data, pages: [UInt32], separate: Bool) throws -> [Data]

Parameters

NameTypeSwift / C#
inputVec<u8>input
pagesVec<u32>pages
separateboolseparate

Returns

Vec<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.

Live demo

Engine 0.1.0-e9147c0 · runs in this browser, your file never leaves it

Samples:

  • text-8-pages.pdf Text, 8 pages, 10 KB