pub struct Pdf {
pub font_id: ObjectId,
pub resources_id: ObjectId,
pub pages_id: ObjectId,
pub content_id: ObjectId,
/* private fields */
}Fields§
§font_id: ObjectId§resources_id: ObjectId§pages_id: ObjectId§content_id: ObjectIdImplementations§
Source§impl Pdf
impl Pdf
pub fn read_from_file(filename: &str) -> Result<Self, String>
pub fn read_from_bytes(bytes: Vec<u8>) -> Result<Self, String>
pub fn version(&self) -> f32
pub fn text(&self) -> String
pub fn get_text_list(&self) -> Vec<&str>
pub fn write(filename: &str) -> Result<Self, String>
pub fn page_data(self)
Auto Trait Implementations§
impl Freeze for Pdf
impl RefUnwindSafe for Pdf
impl Send for Pdf
impl Sync for Pdf
impl Unpin for Pdf
impl UnwindSafe for Pdf
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