Trim extracted structure trees
This commit is contained in:
parent
59178af85c
commit
9487eee6a9
|
@ -337,7 +337,7 @@ let extract_struct_tree pdf =
|
|||
begin match lookup "/StructTreeRoot" d with
|
||||
| None -> `List []
|
||||
| Some x ->
|
||||
let objs = Pdf.objects_referenced ["/Pg"] [] pdf x in
|
||||
let objs = Pdf.objects_referenced ["/Pg"; "/Obj"; "/Stm"; "/StmOwn"] [] pdf x in
|
||||
`List
|
||||
(map
|
||||
(fun objnum ->
|
||||
|
|
Loading…
Reference in New Issue