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§
- Paged
Table Result - 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§
- Table
Drawing - Extension trait for lopdf::Document to add table drawing capabilities