Write native pdfTeX Form XObjects

This commit is contained in:
gloamxun committed 2026-11-27 15:06:44 +08:00
1 parent 7ff988031f
commit c2d3312e5a
23 files changed
+534 -88

No files matched your search

+10
View File
@@ -118,6 +118,7 @@ pub enum PaintKind {
OpenTypeGlyph { font: u32, glyph: u16 },
Rule,
PdfImage { page: usize },
PdfForm { number: u32 },
}
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct MappedPaint {
@@ -436,6 +437,15 @@ impl SourceMap {
height: *height,
},
)),
DisplayItem::PdfForm { x, y, form } => Some((
PaintKind::PdfForm { number: form.number },
Bounds {
x: *x,
y: *y - form.height,
width: form.width,
height: form.height + form.depth,
},
)),
DisplayItem::PdfImage {
x,
y,