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

@@ -174,7 +174,9 @@ impl Collector {
}
}
pub fn output(&mut self, n: &OutputNode) {
if let OutputOperation::Write { tokens, .. } = &n.operation {
if let OutputOperation::Write { tokens, .. }
| OutputOperation::PdfLiteral { tokens, .. } = &n.operation
{
self.usage.token_list_cells += tokens.len();
}
}