pub struct ExtractOptions {
pub max_recursion_depth: usize,
pub max_objects_per_page: usize,
pub max_stream_bytes: usize,
pub collect_warnings: bool,
}Expand description
Options controlling extraction behavior and resource limits.
Provides sensible defaults for all settings. Resource limits prevent pathological PDFs from consuming excessive memory or causing infinite loops.
Fields§
§max_recursion_depth: usizeMaximum recursion depth for nested Form XObjects (default: 10).
max_objects_per_page: usizeMaximum number of objects extracted per page (default: 100,000).
max_stream_bytes: usizeMaximum content stream bytes to process (default: 100 MB).
collect_warnings: boolWhether to collect warnings during extraction (default: true).
Trait Implementations§
Source§impl Clone for ExtractOptions
impl Clone for ExtractOptions
Source§fn clone(&self) -> ExtractOptions
fn clone(&self) -> ExtractOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtractOptions
impl Debug for ExtractOptions
Auto Trait Implementations§
impl Freeze for ExtractOptions
impl RefUnwindSafe for ExtractOptions
impl Send for ExtractOptions
impl Sync for ExtractOptions
impl Unpin for ExtractOptions
impl UnsafeUnpin for ExtractOptions
impl UnwindSafe for ExtractOptions
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
Mutably borrows from an owned value. Read more