Honor XeLaTeX page dictionaries and named rectangle coordinates

This commit is contained in:
gloamxun committed 2026-11-28 18:36:52 +08:00
1 parent e14361fec6
commit e20acc3eb9
10 files changed
+403 -71

No files matched your search

@@ -815,6 +815,11 @@ impl Execution {
}
if !self.state.pdf_draft_mode() {
self.resolve_page_graphics_resources(&mut pages)?;
if let Some(navigation) = &self.state.xdv_navigation {
navigation.resolve_page_dictionaries(&mut pages).map_err(|message| {
Error::at(&self.sources, self.state.input_profile(), message, Span::default())
})?;
}
for form in &mut forms {
let attributes = std::mem::take(&mut form.list.pdf_resources.attributes);
self.resolve_page_graphics_resources(std::slice::from_mut(&mut form.list))?;