Reference · Documents and pages · lib.rs
flatten_file Function
forms_only: bake form answers, keep comments interactive.
func flattenFile(input: Data, formsOnly: Bool) throws -> FlattenOutcomepublic static FlattenOutcome FlattenFile(byte[] input, bool formsOnly)pub fn flatten_file(input: Vec<u8>, forms_only: bool) -> Result<FlattenOutcome, PagewerkError>Parameters
| Name | Type | Swift / C# |
|---|---|---|
input | Vec<u8> | input |
forms_only | bool | formsOnly |
Returns
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.