Write native pdfTeX Form XObjects
This commit is contained in:
1 parent
7ff988031f
commit
c2d3312e5a
23 files changed
+534
-88
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user