pub struct PdfDocument {
pub pages: Vec<PdfPage>,
/* private fields */
}Expand description
A parsed PDF document with pages.
Fields§
§pages: Vec<PdfPage>Extracted pages.
Implementations§
Source§impl PdfDocument
impl PdfDocument
Sourcepub fn add_page(&mut self, page: PdfPage)
pub fn add_page(&mut self, page: PdfPage)
Add a page manually (useful for constructing test documents).
Sourcepub fn page_count(&self) -> usize
pub fn page_count(&self) -> usize
Number of pages.
Sourcepub fn xref_count(&self) -> usize
pub fn xref_count(&self) -> usize
Number of xref entries in the file.