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
@@ -331,6 +331,7 @@ pub enum Primitive {
|
||||
Pdfliteral,
|
||||
Leftmarginkern,
|
||||
Rightmarginkern,
|
||||
Pdflastlink,
|
||||
}
|
||||
|
||||
impl Primitive {
|
||||
@@ -969,6 +970,7 @@ impl Default for State {
|
||||
("pdfobj", Pdfobj),
|
||||
("pdfrefobj", Pdfrefobj),
|
||||
("pdflastobj", Pdflastobj),
|
||||
("pdflastlink", Pdflastlink),
|
||||
("pdfrandomseed", Pdfrandomseed),
|
||||
("pdfsetrandomseed", Pdfsetrandomseed),
|
||||
("pdfuniformdeviate", Pdfuniformdeviate),
|
||||
@@ -1396,7 +1398,13 @@ impl State {
|
||||
self.output_mode_set = None;
|
||||
self.pdf_file_options = None;
|
||||
self.pdf_catalog = None;
|
||||
self.pdf_objects = None;
|
||||
if !self
|
||||
.pdf_objects
|
||||
.as_deref_mut()
|
||||
.is_some_and(crate::pdf_device::page_resources::PdfObjects::retain_format_links)
|
||||
{
|
||||
self.pdf_objects = None;
|
||||
}
|
||||
self.pdf_info.clear();
|
||||
self
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user