From d1e5104bcfeb3d89ad43e76509cad5675297fcea Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 14 Oct 2021 21:29:03 +0100 Subject: [PATCH] sort json by default --- cpdfjson.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpdfjson.ml b/cpdfjson.ml index 8ad4b33..93f61a2 100644 --- a/cpdfjson.ml +++ b/cpdfjson.ml @@ -400,7 +400,7 @@ let json_of_pdf (fun i pdfobj -> ps := (i, json_of_object pdf fcs no_stream_data parse_content pdfobj)::!ps) pdf; - parameters::trailerdict::!ps + parameters::trailerdict::sort compare !ps in let pairs_parsed = if not parse_content then pairs else