Preserve pdfTeX text positioning across direct color changes

This commit is contained in:
gloamxun committed 2026-11-26 15:19:17 +08:00
1 parent 0f6aa1f33d
commit f88a16d101
15 files changed
+193 -44

No files matched your search

@@ -334,7 +334,11 @@ impl Executor {
use crate::pdf_device::PdfDriver;
let xdv = device.pdf.as_ref().is_some_and(|pdf| pdf.driver == PdfDriver::Xdv);
let pdf_color_start = if xdv {
self.xdv_colors.start_page().into_iter().collect()
self.xdv_colors
.start_page()
.into_iter()
.map(crate::pdf_device::ShippedColor::Page)
.collect()
} else if device.pdf.is_some() {
self.pdf_colors.start_page()
} else {