Capture and reuse XeLaTeX PDF form contents

This commit is contained in:
gloamxun committed 2026-11-28 19:29:07 +08:00
1 parent 009fde04f7
commit c0e2346b05
16 files changed
+706 -53

No files matched your search

+2
View File
@@ -813,6 +813,8 @@ impl DisplayList {
use crate::pdf_device::PdfGraphics;
match operation {
PdfGraphics::TextBoundary => {}
PdfGraphics::XdvFormBegin(_) | PdfGraphics::XdvFormEnd(_) |
PdfGraphics::XdvFormUse { .. } => unreachable!("projected XDV form"),
PdfGraphics::Literal { .. } => unreachable!("PDF literal requires PDF rendering"),
PdfGraphics::Save | PdfGraphics::Matrix(_) | PdfGraphics::SaveMatrix(_) => {
if matches!(operation, PdfGraphics::Save | PdfGraphics::SaveMatrix(_)) {