pub struct LoadOptions {
pub password: Option<Vec<u8>>,
pub limits: Limits,
}Expand description
How to open a document.
Fields§
§password: Option<Vec<u8>>The password to try, as raw bytes. Not capped in length.
limits: LimitsCaps to enforce while reading.
Implementations§
Source§impl LoadOptions
impl LoadOptions
Sourcepub fn with_password(self, password: impl AsRef<[u8]>) -> Self
pub fn with_password(self, password: impl AsRef<[u8]>) -> Self
Try this password — a &str, a String, a &[u8] or a Vec<u8>.
PDF passwords are byte strings and need not be UTF-8.
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§impl Debug for LoadOptions
impl Debug for LoadOptions
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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