pub struct PrintConfig {Show 32 fields
pub paper_size: PaperSize,
pub orientation: PageOrientation,
pub margin_top_mm: f32,
pub margin_right_mm: f32,
pub margin_bottom_mm: f32,
pub margin_left_mm: f32,
pub bleed_top_mm: f32,
pub bleed_right_mm: f32,
pub bleed_bottom_mm: f32,
pub bleed_left_mm: f32,
pub safe_top_mm: f32,
pub safe_right_mm: f32,
pub safe_bottom_mm: f32,
pub safe_left_mm: f32,
pub system_height_mm: f32,
pub system_height_policy: SystemHeightPolicy,
pub system_spacing: SystemSpacing,
pub scale: f32,
pub measures_per_system: usize,
pub system_break_strategy: PrintSystemBreakStrategy,
pub first_system_measures: Option<usize>,
pub pickup_policy: PickupPolicy,
pub notation_break_policy: NotationBreakPolicy,
pub systems_per_page: Option<usize>,
pub page_numbering: PageNumbering,
pub final_page_policy: FinalPagePolicy,
pub color_policy: PrintColorPolicy,
pub crop_mark_policy: CropMarkPolicy,
pub glyph_resources: GlyphResourcePolicy,
pub publication: PublicationConfig,
pub part_layout: PartLayoutPolicy,
pub keep_together: Vec<KeepTogetherRange>,
}Expand description
Host-neutral inputs for deterministic page and system layout.
This contract describes physical page geometry only. It intentionally does not select fonts, emit PDF, access printers, or perform filesystem I/O.
Fields§
§paper_size: PaperSize§orientation: PageOrientation§margin_top_mm: f32§margin_right_mm: f32§margin_bottom_mm: f32§margin_left_mm: f32§bleed_top_mm: f32§bleed_right_mm: f32§bleed_bottom_mm: f32§bleed_left_mm: f32§safe_top_mm: f32§safe_right_mm: f32§safe_bottom_mm: f32§safe_left_mm: f32§system_height_mm: f32§system_height_policy: SystemHeightPolicyWhether multiple staves increase the system’s reserved physical height.
system_spacing: SystemSpacingWhether systems are spread over the page height or stacked at their reserved height.
scale: f32Content scale factor. 1.0 preserves the configured system height.
measures_per_system: usize§system_break_strategy: PrintSystemBreakStrategySystem break policy. Density mode uses measures_per_system as an upper bound.
first_system_measures: Option<usize>Optional measure capacity for the first system, useful for pickup/title systems.
pickup_policy: PickupPolicy§notation_break_policy: NotationBreakPolicy§systems_per_page: Option<usize>Override the number of systems per page. When omitted it is derived from the usable
page height and system_height_mm.
page_numbering: PageNumbering§final_page_policy: FinalPagePolicy§color_policy: PrintColorPolicy§crop_mark_policy: CropMarkPolicy§glyph_resources: GlyphResourcePolicy§publication: PublicationConfig§part_layout: PartLayoutPolicy§keep_together: Vec<KeepTogetherRange>Physical measure ranges that must not be split across systems.