Bon::PDF
Constants
BOX_PATTERN = /\/(?:CropBox|MediaBox)\s*\[\s*([-+]?\d*\.?\d+)\s+([-+]?\d*\.?\d+)\s+([-+]?\d*\.?\d+)\s+([-+]?\d*\.?\d+)\s*\]/
CROP_EPSILON_PT = 0.1
Class methods
crop_page_to_width(source : String, output : String, target_width : Float64, page_number : Int32, size : PageSize, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, verbose : Verbose | Nil = nil) : String
Sourcecrop_to_raster(source : String, output : String, source_size : PageSize, target_size : PageSize, ppi : Int32, multiplier : Int32, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, threshold = 0.125, dither = "none", verbose : Verbose | Nil = nil) : String
Sourcecrop_to_width(source : String, output : String, target_width : Float64, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, verbose : Verbose | Nil = nil) : String
Sourcedownsample_grayscale_to_mono(source : String, output : String, multiplier : Int32, threshold = 0.125, dither = "none") : Nil
Sourceensure_width_policy(path : String, output : String, config : Config, no_crop : Bool, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, verbose : Verbose | Nil = nil) : String
Sourceprepare_for_print(path : String, output : String, config : Config, no_crop : Bool, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, verbose : Verbose | Nil = nil) : PrintReady
Sourceprepare_pages_for_print(path : String, output_prefix : String, config : Config, no_crop : Bool, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, verbose : Verbose | Nil = nil) : Array(PrintReady)
Sourceraster_crop_command(gs : String, source : String, output : String, source_size : PageSize, target_size : PageSize, ppi : Int32, grayscale = false) : Array(String)
Sourcesplit_page(source : String, output : String, page_number : Int32, dry_run : Bool, output_io : IO = STDOUT, error_io : IO = STDERR, verbose : Verbose | Nil = nil) : String
Source