1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Centralized document default constants.
//!
//! All hardcoded numeric values for paper sizes, margins, heading styles,
//! streaming parameters, and unit conversions live here so they are defined
//! once and referenced everywhere.
// ---------------------------------------------------------------------------
// Paper sizes in points (1 pt = 1/72 inch)
// ---------------------------------------------------------------------------
/// A4 width: 210 mm = 595.28 pt (ISO 216).
pub const A4_WIDTH_PT: f64 = 595.28;
/// A4 height: 297 mm = 841.89 pt (ISO 216).
pub const A4_HEIGHT_PT: f64 = 841.89;
/// US Letter width: 8.5 in = 612.0 pt.
pub const LETTER_WIDTH_PT: f64 = 612.0;
/// US Letter height: 11 in = 792.0 pt.
pub const LETTER_HEIGHT_PT: f64 = 792.0;
/// US Legal width: 8.5 in = 612.0 pt.
pub const LEGAL_WIDTH_PT: f64 = 612.0;
/// US Legal height: 14 in = 1008.0 pt.
pub const LEGAL_HEIGHT_PT: f64 = 1008.0;
// ---------------------------------------------------------------------------
// Margins
// ---------------------------------------------------------------------------
/// Default page margin: 1 inch = 72 points.
pub const DEFAULT_MARGIN_PT: f64 = 72.0;
// ---------------------------------------------------------------------------
// Heading font sizes
// ---------------------------------------------------------------------------
/// Default font sizes for heading levels 1-6.
/// Index 0 = Heading 1, index 5 = Heading 6.
pub const HEADING_FONT_SIZES: = ;
// ---------------------------------------------------------------------------
// Streaming
// ---------------------------------------------------------------------------
/// Default chunk size (in rows) for XLSX streaming mode.
pub const DEFAULT_STREAMING_CHUNK_SIZE: usize = 1000;
// ---------------------------------------------------------------------------
// Unit conversion
// ---------------------------------------------------------------------------
/// Points per inch (PostScript definition).
pub const POINTS_PER_INCH: f64 = 72.0;
/// CSS reference pixels per inch.
pub const PIXELS_PER_INCH: f64 = 96.0;