mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
Trim extracted structure trees
This commit is contained in:
@ -337,7 +337,7 @@ let extract_struct_tree pdf =
|
|||||||
begin match lookup "/StructTreeRoot" d with
|
begin match lookup "/StructTreeRoot" d with
|
||||||
| None -> `List []
|
| None -> `List []
|
||||||
| Some x ->
|
| Some x ->
|
||||||
let objs = Pdf.objects_referenced ["/Pg"] [] pdf x in
|
let objs = Pdf.objects_referenced ["/Pg"; "/Obj"; "/Stm"; "/StmOwn"] [] pdf x in
|
||||||
`List
|
`List
|
||||||
(map
|
(map
|
||||||
(fun objnum ->
|
(fun objnum ->
|
||||||
|
Reference in New Issue
Block a user