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: Arc<HashMap<String, String>>,
pub font_metrics_data: Arc<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: Arc<HashMap<String, String>>Map from typeface name to PDF font resource name (e.g. “/XFA_F0”).
Wrapped in Arc so the immutable font-resource map can be shared
across thousands of XfaRenderConfig::clone() calls (PERF2-02:
apply_node_style clones the config per layout node). The field
dereferences to HashMap<String, String> transparently, so existing
&config.font_map.get(...) call sites continue to work unchanged.
font_metrics_data: Arc<HashMap<String, FontMetricsData>>Resolved font metrics per typeface.
Same Arc-sharing rationale as Self::font_map: avoids deep-cloning
the per-typeface widths array on every node-level config clone.
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§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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>
ReadEndian::read_from_little_endian().