This commit is contained in:
John Whitington 2021-06-20 17:30:14 +01:00
parent a5053f1e3c
commit 1a952619c9
2 changed files with 5 additions and 1 deletions

View File

@ -5,10 +5,11 @@ o Optional Content Groups now preserved when merging / stamping pages
o Listing, coalescing and modfying Optional Content Groups.
o New -labels-progress option to improve page labels interface
o New options -output-json et al. to export PDF files in JSON format
o New options to manipulate Optional Content Groups
o New option -stamp-as-xobject to add one PDF as an xobject in another
o No longer depends on Bigarray or Unix modules
o Appearance streams transformed when transforming annotations
o Bookmark desitination positions transformed when transforming pages
o Bookmark destination positions transformed when transforming pages
Version 2.3 (patchlevel 1, December 2019)

View File

@ -187,6 +187,9 @@ let json_of_pdf parse_content no_stream_data pdf =
iter (fun n -> Pdfcodec.decode_pdfstream_until_unknown pdf (P.lookup_obj pdf n)) !content_streams;
let pairs_parsed =
if not parse_content then pairs else
(* FIXME. Here we must combine all the streams together, using a new
object number. This is so that the parsing can parse things split
across streams. *)
map
(fun (objnum, obj) ->
if mem objnum !content_streams then