Trait PdfPageAnnotationVariableText

Source
pub trait PdfPageAnnotationVariableText<'a> {
    // Required methods
    fn get_font_size(
        &self,
        form: &PdfForm<'_>,
    ) -> Result<PdfPoints, PdfiumError>;
    fn is_font_auto_sized(&self, form: &PdfForm<'_>) -> bool;
    fn get_font_color(
        &self,
        form: &PdfForm<'_>,
    ) -> Result<PdfColor, PdfiumError>;
}
Expand description

Text-handling functions common to all PdfPageAnnotation types that support custom text.

Required Methods§

Source

fn get_font_size(&self, form: &PdfForm<'_>) -> Result<PdfPoints, PdfiumError>

Returns the size of the text in this annotation. A value of PdfPoints::ZERO indicates that the font size is determined automatically from the annotation height. See also the PdfPageAnnotationVariableText::is_font_auto_sized() function.

Source

fn is_font_auto_sized(&self, form: &PdfForm<'_>) -> bool

Returns true if the font size for this annotation is determined automatically from the annotation height.

Source

fn get_font_color(&self, form: &PdfForm<'_>) -> Result<PdfColor, PdfiumError>

Returns the color of the text in this annotation.

Implementors§

Source§

impl<'a, T> PdfPageAnnotationVariableText<'a> for T
where T: PdfPageAnnotationPrivate<'a>,