MAX_PDF_ROWS

Constant MAX_PDF_ROWS 

Source
pub const MAX_PDF_ROWS: usize = 5_000;
Expand description

Rows a printable card may carry.

Checked from the row count itself, before a document exists — the byte cap (bridge::MAX_PDF_BYTES) can only refuse a 26 MB Vec<u8> that has already been built and paginated. At ~0.5 KiB/row over the ~815 KiB font floor this bound keeps every accepted card comfortably inside that cap, which remains the backstop for the other way to make a huge document: header/footer labels, which are drawn verbatim on every page.