Honor XeLaTeX page dictionaries and named rectangle coordinates
This commit is contained in:
1 parent
e14361fec6
commit
e20acc3eb9
10 files changed
+403
-71
No files matched your search
@@ -92,7 +92,7 @@ impl Executor {
|
||||
}).map_err(|error| self.error(error, special.span))?;
|
||||
self.check_cancellation()?;
|
||||
let navigation = Arc::make_mut(self.state.xdv_navigation.get_or_insert_with(Default::default));
|
||||
navigation.apply_object(command, operands.len().saturating_add(size), self.limits.tokens)
|
||||
navigation.apply_object(command, position.page, operands.len().saturating_add(size), self.limits.tokens)
|
||||
}.map_err(|error| self.error(error, special.span))?;
|
||||
for warning in warnings {
|
||||
files.observe_diagnostic(WriteDestination::TerminalAndLog, &warning)
|
||||
|
||||
@@ -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))?;
|
||||
|
||||
Reference in new issue
Block a user