Emit PDF link annotations from display lists

This commit is contained in:
gloamxun committed 2026-10-20 18:14:47 +08:00
1 parent 431bbd14d4
commit da7f580bf0
4 files changed
+103 -2

No files matched your search

+2
View File
@@ -253,3 +253,5 @@ Paragraph painter: `Unit::paragraph` now stores `VerticalItem::Paragraph`, and `
Math painter: stores ; paints symbols, rows, scripts, fractions (with a rule), roots, delimiters, accents, underlines, boxes and stacks. Script/fraction positions are simplified TeX geometry.
PDF writer: `src/pdf.rs` emits a one-page PDF 1.4 for a `DisplayList` (Base-14 Times-Roman text, filled rectangle rules, US Letter media box). It is a structural backend spike; TFM/NFSS fonts, XObjects and multi-page output are still open.
M6 (partial): display-list Link rectangles become PDF /Annots /Subtype /Link /URI dictionaries. Raw-RGB images are PDF XObjects; /special and embedded font subsets remain.