pub struct RepairOptions {
pub rebuild_xref: bool,
pub fix_stream_lengths: bool,
pub remove_broken_objects: bool,
}Expand description
Options for controlling which PDF repairs to attempt.
Each field enables a specific repair strategy. All default to true.
Fields§
§rebuild_xref: boolRebuild the cross-reference table by scanning for obj/endobj markers.
fix_stream_lengths: boolRecalculate stream /Length entries from actual stream data.
remove_broken_objects: boolRemove or skip unresolvable object references with warnings.
Trait Implementations§
Source§impl Clone for RepairOptions
impl Clone for RepairOptions
Source§fn clone(&self) -> RepairOptions
fn clone(&self) -> RepairOptions
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 RepairOptions
impl Debug for RepairOptions
Source§impl Default for RepairOptions
impl Default for RepairOptions
Auto Trait Implementations§
impl Freeze for RepairOptions
impl RefUnwindSafe for RepairOptions
impl Send for RepairOptions
impl Sync for RepairOptions
impl Unpin for RepairOptions
impl UnsafeUnpin for RepairOptions
impl UnwindSafe for RepairOptions
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