pub struct XfaRenderConfig {
pub default_font: String,
pub default_font_size: f64,
pub draw_borders: bool,
pub border_width: f64,
pub border_color: [f64; 3],
pub text_color: [f64; 3],
pub background_color: Option<[f64; 3]>,
pub text_padding: f64,
pub font_map: HashMap<String, String>,
pub font_metrics_data: HashMap<String, FontMetricsData>,
pub check_button_mark: Option<String>,
pub field_values_only: bool,
}Expand description
Configuration for PDF overlay rendering.
Fields§
§default_font: StringDefault font name to use in content streams.
default_font_size: f64Default font size in points.
draw_borders: boolWhether to draw field borders.
border_width: f64Border line width.
border_color: [f64; 3]Border color (RGB 0-1).
text_color: [f64; 3]Text color (RGB 0-1).
background_color: Option<[f64; 3]>Background color for fields (None = transparent).
text_padding: f64Text padding from field edges.
font_map: HashMap<String, String>Map from typeface name to PDF font resource name (e.g. “/XFA_F0”).
font_metrics_data: HashMap<String, FontMetricsData>Resolved font metrics per typeface.
CheckButton mark style (check, circle, cross, diamond, square, star).
field_values_only: boolWhen true, only render field value text — skip backgrounds, borders, captions, draws, and wrapped text. Used by the preserve_static hybrid path to add XFA field values on top of pre-rendered page content without duplicating the visual structure.
Trait Implementations§
Source§impl Clone for XfaRenderConfig
impl Clone for XfaRenderConfig
Source§fn clone(&self) -> XfaRenderConfig
fn clone(&self) -> XfaRenderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XfaRenderConfig
impl Debug for XfaRenderConfig
Auto Trait Implementations§
impl Freeze for XfaRenderConfig
impl RefUnwindSafe for XfaRenderConfig
impl Send for XfaRenderConfig
impl Sync for XfaRenderConfig
impl Unpin for XfaRenderConfig
impl UnsafeUnpin for XfaRenderConfig
impl UnwindSafe for XfaRenderConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().