pub struct PdfPage { /* private fields */ }Expand description
Wraps PDFPage.
Implementations§
Source§impl PdfPage
impl PdfPage
Sourcepub fn from_image_data(
image_data: &[u8],
options: &PdfPageImageInitializationOptions,
) -> Result<Self>
pub fn from_image_data( image_data: &[u8], options: &PdfPageImageInitializationOptions, ) -> Result<Self>
Wraps the image-based PDFPage initializer.
Sourcepub fn number_of_characters(&self) -> usize
pub fn number_of_characters(&self) -> usize
Wraps the corresponding PDFPage API.
Sourcepub fn set_rotation(&self, rotation: i32) -> Result<()>
pub fn set_rotation(&self, rotation: i32) -> Result<()>
Wraps the corresponding PDFPage API.
Sourcepub fn bounds(&self, display_box: DisplayBox) -> PdfRect
pub fn bounds(&self, display_box: DisplayBox) -> PdfRect
Wraps the corresponding PDFPage API.
Sourcepub fn set_bounds(&self, display_box: DisplayBox, bounds: PdfRect) -> Result<()>
pub fn set_bounds(&self, display_box: DisplayBox, bounds: PdfRect) -> Result<()>
Wraps the corresponding PDFPage API.
Sourcepub fn document(&self) -> Option<PdfDocument>
pub fn document(&self) -> Option<PdfDocument>
Wraps the corresponding PDFPage API.
Sourcepub fn annotation_count(&self) -> usize
pub fn annotation_count(&self) -> usize
Wraps the corresponding PDFPage API.
Sourcepub fn annotation(&self, index: usize) -> Option<PdfAnnotation>
pub fn annotation(&self, index: usize) -> Option<PdfAnnotation>
Wraps the corresponding PDFPage API.
Sourcepub fn annotations(&self) -> Vec<PdfAnnotation>
pub fn annotations(&self) -> Vec<PdfAnnotation>
Wraps the corresponding PDFPage API.
Sourcepub fn add_annotation(&self, annotation: &PdfAnnotation) -> Result<()>
pub fn add_annotation(&self, annotation: &PdfAnnotation) -> Result<()>
Wraps the corresponding PDFPage API.
Sourcepub fn remove_annotation(&self, annotation: &PdfAnnotation) -> Result<()>
pub fn remove_annotation(&self, annotation: &PdfAnnotation) -> Result<()>
Wraps the corresponding PDFPage API.
Sourcepub fn annotation_at_point(&self, point: PdfPoint) -> Option<PdfAnnotation>
pub fn annotation_at_point(&self, point: PdfPoint) -> Option<PdfAnnotation>
Wraps the corresponding PDFPage API.
Sourcepub fn selection_for_range(
&self,
location: usize,
length: usize,
) -> Option<PdfSelection>
pub fn selection_for_range( &self, location: usize, length: usize, ) -> Option<PdfSelection>
Wraps the corresponding PDFPage API.
Sourcepub fn selection_for_rect(&self, rect: PdfRect) -> Option<PdfSelection>
pub fn selection_for_rect(&self, rect: PdfRect) -> Option<PdfSelection>
Wraps the corresponding PDFPage API.
Sourcepub fn selection_for_word_at_point(
&self,
point: PdfPoint,
) -> Option<PdfSelection>
pub fn selection_for_word_at_point( &self, point: PdfPoint, ) -> Option<PdfSelection>
Wraps the corresponding PDFPage API.
Sourcepub fn selection_for_line_at_point(
&self,
point: PdfPoint,
) -> Option<PdfSelection>
pub fn selection_for_line_at_point( &self, point: PdfPoint, ) -> Option<PdfSelection>
Wraps the corresponding PDFPage API.
Sourcepub fn selection_from_points(
&self,
start: PdfPoint,
end: PdfPoint,
) -> Option<PdfSelection>
pub fn selection_from_points( &self, start: PdfPoint, end: PdfPoint, ) -> Option<PdfSelection>
Wraps the corresponding PDFPage API.
Sourcepub fn character_bounds_at(&self, index: usize) -> PdfRect
pub fn character_bounds_at(&self, index: usize) -> PdfRect
Wraps the corresponding PDFPage API.
Sourcepub fn character_index_at_point(&self, point: PdfPoint) -> Option<usize>
pub fn character_index_at_point(&self, point: PdfPoint) -> Option<usize>
Wraps the corresponding PDFPage API.
Sourcepub fn displays_annotations(&self) -> bool
pub fn displays_annotations(&self) -> bool
Wraps the corresponding PDFPage API.
Sourcepub fn set_displays_annotations(&self, value: bool)
pub fn set_displays_annotations(&self, value: bool)
Wraps the corresponding PDFPage API.