mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-02-03 03:47:45 +01:00
Better destination handling for bookmarks
This commit is contained in:
parent
7123425b76
commit
344ea8524a
3
cpdf.ml
3
cpdf.ml
@ -1278,7 +1278,8 @@ let list_bookmarks encoding range pdf output =
|
|||||||
let inrange =
|
let inrange =
|
||||||
keep
|
keep
|
||||||
(function x ->
|
(function x ->
|
||||||
x.Pdfmarks.target = Pdfdest.NullDestination ||
|
x.Pdfmarks.target = Pdfdest.NullDestination ||
|
||||||
|
(match x.Pdfmarks.target with Pdfdest.NamedDestinationElsewhere _ -> true | _ -> false) ||
|
||||||
Hashtbl.mem rangetable (Pdfpage.pagenumber_of_target ~fastrefnums pdf x.Pdfmarks.target)) bookmarks
|
Hashtbl.mem rangetable (Pdfpage.pagenumber_of_target ~fastrefnums pdf x.Pdfmarks.target)) bookmarks
|
||||||
in
|
in
|
||||||
iter
|
iter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user