Discard duplicate destinations during native PDF execution
This commit is contained in:
1 parent
ba548ef05d
commit
0e71c15b01
9 files changed
+152
-7
No files matched your search
@@ -404,6 +404,12 @@ impl PdfObjects {
|
||||
Ok(number)
|
||||
}
|
||||
|
||||
pub(crate) fn destination_is_defined(&self, id: DestinationId<String>, structure: bool) -> bool {
|
||||
self.destination_numbers
|
||||
.get(&(id, structure))
|
||||
.is_some_and(|(_, defined)| *defined)
|
||||
}
|
||||
|
||||
pub(crate) fn destination_number(
|
||||
&mut self, id: DestinationId<String>, structure: bool, define: bool, limit: usize,
|
||||
) -> Result<Option<u32>, String> {
|
||||
|
||||
Reference in new issue
Block a user