Reference · Documents and pages · lib.rs

flatten_file Function

forms_only: bake form answers, keep comments interactive.

func flattenFile(input: Data, formsOnly: Bool) throws -> FlattenOutcome

Parameters

NameTypeSwift / C#
inputVec<u8>input
forms_onlyboolformsOnly

Returns

FlattenOutcome

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.