pub struct ConvertArgs {Show 24 fields
pub input: PathBuf,
pub output: PathBuf,
pub config: Option<PathBuf>,
pub ocr: bool,
pub upscale: bool,
pub deskew: bool,
pub margin_trim: f32,
pub dpi: u32,
pub jpeg_quality: u8,
pub threads: Option<usize>,
pub chunk_size: usize,
pub gpu: bool,
pub verbose: u8,
pub quiet: bool,
pub dry_run: bool,
pub internal_resolution: bool,
pub color_correction: bool,
pub offset_alignment: bool,
pub output_height: u32,
pub advanced: bool,
pub skip_existing: bool,
pub force: bool,
pub max_pages: Option<usize>,
pub save_debug: bool,
/* private fields */
}Expand description
Arguments for the convert command
Fields§
§input: PathBufInput PDF file or directory
output: PathBufOutput directory
config: Option<PathBuf>Configuration file path (TOML format)
ocr: boolEnable Japanese OCR (YomiToku)
upscale: boolEnable AI upscaling (RealESRGAN)
deskew: boolEnable deskew correction
margin_trim: f32Margin trim percentage
dpi: u32Output DPI (1-4800)
jpeg_quality: u8JPEG quality for PDF image compression (1-100, higher = better quality, larger file)
threads: Option<usize>Number of parallel threads
chunk_size: usizeChunk size for memory-controlled parallel processing (0 = process all at once)
gpu: boolEnable GPU processing
verbose: u8Verbosity level (-v, -vv, -vvv)
quiet: boolSuppress progress output
dry_run: boolShow execution plan without processing
internal_resolution: boolEnable internal resolution normalization (4960x7016)
color_correction: boolEnable global color correction
offset_alignment: boolEnable page number offset alignment
output_height: u32Output height in pixels (default: 3508)
advanced: boolEnable advanced processing for best quality output (includes: internal resolution normalization, color correction, offset alignment)
skip_existing: boolSkip files if output already exists
force: boolForce re-processing even if cache is valid
max_pages: Option<usize>Maximum pages to process (for debugging)
save_debug: boolSave intermediate debug images
Implementations§
Source§impl ConvertArgs
impl ConvertArgs
Sourcepub fn effective_upscale(&self) -> bool
pub fn effective_upscale(&self) -> bool
Get effective upscale setting (considering –no-upscale flag)
Sourcepub fn effective_deskew(&self) -> bool
pub fn effective_deskew(&self) -> bool
Get effective deskew setting (considering –no-deskew flag)
Sourcepub fn effective_gpu(&self) -> bool
pub fn effective_gpu(&self) -> bool
Get effective GPU setting (considering –no-gpu flag)
Sourcepub fn thread_count(&self) -> usize
pub fn thread_count(&self) -> usize
Get thread count (default to available CPUs)
Sourcepub fn effective_internal_resolution(&self) -> bool
pub fn effective_internal_resolution(&self) -> bool
Get effective internal resolution setting (considering –advanced flag)
Sourcepub fn effective_color_correction(&self) -> bool
pub fn effective_color_correction(&self) -> bool
Get effective color correction setting (considering –advanced flag)
Sourcepub fn effective_offset_alignment(&self) -> bool
pub fn effective_offset_alignment(&self) -> bool
Get effective offset alignment setting (considering –advanced flag)
Trait Implementations§
Source§impl Args for ConvertArgs
impl Args for ConvertArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ConvertArgs
impl Debug for ConvertArgs
Source§impl FromArgMatches for ConvertArgs
impl FromArgMatches for ConvertArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ConvertArgs
impl RefUnwindSafe for ConvertArgs
impl Send for ConvertArgs
impl Sync for ConvertArgs
impl Unpin for ConvertArgs
impl UnwindSafe for ConvertArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more