Bon::Config
Constructors
new(printer_name : String | Nil = nil, paper_width_mm : Float64 = 80.0, printable_width_pt : Float64 | Nil = nil, min_media_pt : Float64 = 72.0, max_media_height_pt : Float64 = 5669.3, typst_bin : String = "typst", typst_mode : String = "pdf", image_ppi : Int32 = 203, raster_ppi_multiplier : Int32 = 2, raster_threshold : Float64 = 0.125, raster_dither : String = "none", latex_engine : String = "auto", cups_copies : Int32 = 1, cups_dry_run : Bool = false, cups_options : Hash(String, String) = {"Resolution" => "203x203dpi", "TmxPaperCut" => "CutPerPage", "TmxPaperReduction" => "Top"}, simulate_top_mm : Float64 = 10.0, simulate_bottom_mm : Float64 = 14.0, simulate_min_top_mm : Float64 = 12.0, simulate_min_bottom_mm : Float64 = 2.0, simulate_background_tint : String = "#f5f1e0", simulate_foreground_color : String = "#232320", simulate_foreground_fade : Float64 = 1.0, web_host : String = "0.0.0.0", web_port : Int32 = 8080, web_token : Nil | String = nil.as(String | ::Nil), web_max_upload_mb : Int32 = 25, web_job_ttl_seconds : Int32 = 3600)
SourceClass methods
global_path
SourceInstance methods
cups_copies
Sourcecups_dry_run
Sourcecups_options
Sourceexplicit_printable_width_pt?
Sourceimage_ppi
Sourcelatex_engine
Sourcemax_media_height_pt
Sourcemin_media_pt
Sourcepaper_width_mm
Sourcepaper_width_pt
Sourceprintable_width_pt
Sourceprintable_width_pt=(value : Nil) : Nil
Sourceprinter_name
Sourceprinter_overrides
Sourceraster_dither
Sourceraster_ppi_multiplier
Sourceraster_threshold
Sourcesimulate_background_tint
Sourcesimulate_bottom_mm
Sourcesimulate_foreground_color
Sourcesimulate_foreground_fade
Sourcesimulate_min_bottom_mm
Sourcesimulate_min_top_mm
Sourcesimulate_top_mm
Sourceto_effective_toml
Sourceto_toml
Sourcetypst_bin
Sourcetypst_mode
Sourcevalidate!
Sourcewarnings
Sourceweb_host
Sourceweb_job_ttl_seconds
Sourceweb_max_upload_mb
Sourceweb_port
Sourceweb_token
Source