Reference · Rules and helpers · rules.rs

typed_signature Function

A typed signature as a PNG in the bundled handwriting font, height px high.

func typedSignature(name: String, color: RgbColor, height: UInt32) throws -> Data

Parameters

NameTypeSwift / C#
nameStringname
colorRgbColorcolor
heightu32height

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.