Deterministic booklet imposition and fold-order verification in pure MoonBit
pub(all) struct JobSpec {
sections : Array[Section]
maximum : Int
policy : SignaturePolicy
capacities : Array[Int]?
binding : Binding
duplex : Duplex
paper : Paper
print : PrintOptions
}pub(all) struct Placement {
logical_page : Int
sheet : Int
back : Bool
right : Bool
rotation : Int
}pub(all) struct Preflight {
logical_pages : Int
content_pages : Int
explicit_blanks : Int
padding_blanks : Int
sheets : Int
gatherings : Int
repeated_references : Int
issues : Array[PreflightIssue]
}pub(all) struct PreflightIssue {
blocking : Bool
field : String
message : String
}pub(all) struct Section {
source : String
source_pages : Int
selection : String
start_on_recto : Bool
}fn locate_source(booklet : Booklet, source : String, number : Int) -> Result[Array[Placement], WorkflowError]fn plan_gatherings(pages : Int, maximum : Int, policy : SignaturePolicy) -> Result[Array[Signature], WorkflowError]fn schedule_print(booklet : Booklet, options : PrintOptions) -> Result[PrintSchedule, WorkflowError]Install
Download zipDeterministic booklet imposition and fold-order verification in pure MoonBit