From 69eb40c91855b28316d3ae24cccf01871303a451 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 1 Jun 2023 15:07:55 +0100 Subject: [PATCH] Removal module J = --- cpdfannot.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpdfannot.ml b/cpdfannot.ml index 8b136c3..91ffbee 100644 --- a/cpdfannot.ml +++ b/cpdfannot.ml @@ -96,7 +96,6 @@ let get_annotations_json pdf range = let fastrefnums = hashtable_of_dictionary (combine refnums (indx refnums)) in let calculate_pagenumber = Pdfpage.pagenumber_of_target ~fastrefnums pdf in extra := []; - let module J = Cpdfyojson.Safe in let pages = Pdfpage.pages_of_pagetree pdf in let pagenums = indx pages in let pairs = combine pages pagenums in @@ -137,7 +136,7 @@ let get_annotations_json pdf range = (Pdf.Dictionary ["/CPDFJSONannotformatversion", Pdf.Integer 1])] in let json = `List ([header] @ json @ extra) in - Pdfio.bytes_of_string (J.pretty_to_string json) + Pdfio.bytes_of_string (Cpdfyojson.Safe.pretty_to_string json) (* Return annotations *) let get_annotations encoding pdf =