pub struct TableRenderer {
pub default_row_height: f64,
pub default_header_height: f64,
pub auto_height: bool,
}Expand description
Renderer for advanced tables
Fields§
§default_row_height: f64Default row height when not specified
default_header_height: f64Default header height
auto_height: boolWhether to auto-calculate cell heights based on content
Implementations§
Source§impl TableRenderer
impl TableRenderer
Sourcepub fn calculate_table_height(&self, table: &AdvancedTable) -> f64
pub fn calculate_table_height(&self, table: &AdvancedTable) -> f64
Calculate the total height needed to render a table
This is essential for intelligent positioning and layout management. Returns the height in points from bottom to top of the rendered table.
Sourcepub fn render_table(
&self,
page: &mut Page,
table: &AdvancedTable,
x: f64,
y: f64,
) -> Result<f64, PdfError>
pub fn render_table( &self, page: &mut Page, table: &AdvancedTable, x: f64, y: f64, ) -> Result<f64, PdfError>
Render a table to a PDF page
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableRenderer
impl RefUnwindSafe for TableRenderer
impl Send for TableRenderer
impl Sync for TableRenderer
impl Unpin for TableRenderer
impl UnsafeUnpin for TableRenderer
impl UnwindSafe for TableRenderer
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