Include PDF graphics in the native XeTeX device

This commit is contained in:
gloamxun committed 2026-11-21 13:34:55 +08:00
1 parent facecbf790
commit 794c2f9b2c
19 files changed
+545 -37

No files matched your search

+4 -1
View File
@@ -343,7 +343,10 @@ impl SourceMap {
match operation {
PdfGraphics::Literal { .. } => {}
PdfGraphics::Save => graphics_stack.push(transform),
PdfGraphics::Matrix(matrix) => {
PdfGraphics::Matrix(matrix) | PdfGraphics::SaveMatrix(matrix) => {
if matches!(operation, PdfGraphics::SaveMatrix(_)) {
graphics_stack.push(transform);
}
transform =
transform.concatenate(matrix.about(*x as f64, *y as f64, true));
}