From d950b97c861b9b41553e6de61a27397094f7041c Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 18 Apr 2023 20:19:50 +0100 Subject: [PATCH] more --- cpdfannot.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpdfannot.ml b/cpdfannot.ml index 9869e7b..8670869 100644 --- a/cpdfannot.ml +++ b/cpdfannot.ml @@ -223,6 +223,9 @@ let set_annotations_json pdf i = hashtable_of_dictionary (map2 (fun f t -> (f, t)) pdf_objnums (ilist (maxobjnum + 1) (maxobjnum + length pdf_objnums))) in let pdf = Pdf.renumber change_table pdf in + (* 1. Rewrite all serial numbers in all places (annots and extra objects?) *) + (* 2. Add all the negative numbered objects straight to the file *) + (* 3. Add all the actual annotations to the /Annots array on each page *) () | _ -> error "Bad Annotations JSON file"