Emit native PDF literals at scan and shipout boundaries

This commit is contained in:
gloamxun committed 2026-11-21 02:03:25 +08:00
1 parent 13ab32247d
commit 432c1d2ba7
21 files changed
+264 -61

No files matched your search

@@ -246,6 +246,11 @@ pub enum OutputOperation {
image: std::sync::Arc<crate::pdf_image::PdfImageUse>,
origin: super::TokenOrigin,
},
PdfLiteral {
mode: crate::pdf_device::PdfLiteralMode,
shipout: bool,
tokens: Vec<Token>,
},
}
#[derive(Clone, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
@@ -265,6 +270,7 @@ impl OutputNode {
OutputOperation::PdfSave
| OutputOperation::PdfSetMatrix(_)
| OutputOperation::PdfRestore
| OutputOperation::PdfLiteral { .. }
)
}