pub struct PdfCatalog<'a> { /* private fields */ }Expand description
The internal catalog properties for a single PdfDocument.
Implementations§
Source§impl<'a> PdfCatalog<'a>
impl<'a> PdfCatalog<'a>
Sourcepub fn is_tagged(&self) -> bool
pub fn is_tagged(&self) -> bool
Returns true if the containing PdfDocument is a tagged PDF.
A PDF is considered “tagged” if it includes structural elements and metadata that can be used to facilitate content extraction and processing by tooling; in other words, the PDF contains data above and beyond that required merely for rendering.
For more information on tagged PDFs, see The PDF Reference, Sixth Edition, section 10.7, starting on page 883.
Sourcepub fn get_language(&self) -> Result<String, PdfiumError>
pub fn get_language(&self) -> Result<String, PdfiumError>
Returns the language set in the catalog of the containing PdfDocument, if any.
Sourcepub fn set_language(
&mut self,
language: impl ToString,
) -> Result<(), PdfiumError>
pub fn set_language( &mut self, language: impl ToString, ) -> Result<(), PdfiumError>
Sets the language of the containing PdfDocument to the given value.
Trait Implementations§
Source§impl<'a> PdfiumLibraryBindingsAccessor<'a> for PdfCatalog<'a>
impl<'a> PdfiumLibraryBindingsAccessor<'a> for PdfCatalog<'a>
fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
impl<'a> Send for PdfCatalog<'a>
Available on crate feature
thread_safe only.impl<'a> Sync for PdfCatalog<'a>
Available on crate feature
thread_safe only.Auto Trait Implementations§
impl<'a> Freeze for PdfCatalog<'a>
impl<'a> RefUnwindSafe for PdfCatalog<'a>
impl<'a> Unpin for PdfCatalog<'a>
impl<'a> UnsafeUnpin for PdfCatalog<'a>
impl<'a> UnwindSafe for PdfCatalog<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more