Reference · Documents and pages · lib.rs

upright_turns Function

Automatisch ausrichten: each page read four ways (small render, turned by the engine); a page turns where its text reads clearly better.

func uprightTurns(input: Data, recognizer: TextRecognizer) throws -> [UprightTurn]

Parameters

NameTypeSwift / C#
inputVec<u8>input
recognizerArc<dyn TextRecognizer>recognizer

Returns

Vec<UprightTurn>

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.