Bind native last-link numbers to shipped PDF annotations
This commit is contained in:
1 parent
7f74251c8a
commit
60d7411dfe
12 files changed
+227
-19
No files matched your search
@@ -2146,6 +2146,14 @@ impl Executor {
|
||||
self.reads.insert(Dependency::PdfRandomState);
|
||||
Ok(self.state.random_seed())
|
||||
}
|
||||
Meaning::Primitive(Primitive::Pdflastlink) => {
|
||||
self.reads.insert(Dependency::PdfObjects);
|
||||
Ok(self
|
||||
.state
|
||||
.pdf_objects
|
||||
.as_deref()
|
||||
.map_or(0, |objects| objects.last_link()))
|
||||
}
|
||||
Meaning::Primitive(Primitive::Pdflastobj) => {
|
||||
self.reads.insert(Dependency::PdfObjects);
|
||||
Ok(self.state.pdf_objects.as_deref().map_or(0, |objects| objects.last()))
|
||||
|
||||
Reference in new issue
Block a user