Measure XeLaTeX graphics links from device placement
This commit is contained in:
1 parent
d875b69280
commit
d627614af8
12 files changed
+295
-149
No files matched your search
@@ -55,6 +55,7 @@ impl Executor {
|
||||
special: &ShipoutSpecial,
|
||||
position: crate::pdf_device::xdv_object::Position,
|
||||
graphics_step: usize,
|
||||
capture_origin: [f64; 2],
|
||||
links: &mut crate::pdf_device::links::PageLinks,
|
||||
origin: Option<TokenOrigin>,
|
||||
files: &mut impl SourceProvider,
|
||||
@@ -74,7 +75,7 @@ impl Executor {
|
||||
let warnings = if matches!(kind, b"bxobj" | b"exobj" | b"uxobj") {
|
||||
let source = origin.unwrap_or(TokenOrigin { span: special.span, invocation: None });
|
||||
let navigation = Arc::make_mut(self.state.xdv_navigation.get_or_insert_with(Default::default));
|
||||
let (operation, warnings) = navigation.form_special(kind, operands, position, source, self.limits.tokens)
|
||||
let (operation, warnings) = navigation.form_special(kind, operands, position, capture_origin, source, self.limits.tokens)
|
||||
.map_err(|error| self.error(error, special.span))?;
|
||||
graphics = Some(operation);
|
||||
Ok(warnings)
|
||||
|
||||
Reference in new issue
Block a user