Crate lopdf_table

Crate lopdf_table 

Source
Expand description

A composable table drawing library for PDFs built on lopdf

This library provides an ergonomic API for creating tables in PDF documents with support for automatic sizing, custom styling, and flexible layouts.

Re-exports§

pub use error::Result;
pub use error::TableError;
pub use style::Alignment;
pub use style::BorderStyle;
pub use style::CellStyle;
pub use style::Color;
pub use style::RowStyle;
pub use style::TableStyle;
pub use style::VerticalAlignment;
pub use table::Cell;
pub use table::ColumnWidth;
pub use table::Row;
pub use table::Table;

Modules§

error
Error types for the lopdf-table library
layout
Layout calculation for tables
style
Styling structures for tables, rows, and cells
table
Core table structures

Structs§

PagedTableResult
Result of drawing a paginated table

Constants§

A4_HEIGHT
Standard A4 page height in points
A4_WIDTH
Standard A4 page width in points
DEFAULT_BORDER_WIDTH
Default border width in points
DEFAULT_CHAR_WIDTH_RATIO
Default character width ratio for text estimation (average character width as a fraction of font size)
DEFAULT_FONT_SIZE
Default font size in points
DEFAULT_LINE_HEIGHT_MULTIPLIER
Default line height multiplier
DEFAULT_MARGIN
Default page margin in points
DEFAULT_PADDING
Default padding value in points
LETTER_HEIGHT
US Letter page height in points
LETTER_WIDTH
US Letter page width in points
MIN_COLUMN_WIDTH
Minimum column width in points

Traits§

TableDrawing
Extension trait for lopdf::Document to add table drawing capabilities