Trim extracted structure trees

This commit is contained in:
John Whitington 2024-06-03 17:08:06 +01:00
parent 59178af85c
commit 9487eee6a9
1 changed files with 1 additions and 1 deletions

View File

@ -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 ->