From 273aeb8ea7439987b7cc458f1ee7d7dc805c74c7 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 26 Nov 2024 17:32:16 +0000 Subject: [PATCH] Annots behaviour --- cpdfcommand.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index baaf045..0aea7fc 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -3725,6 +3725,7 @@ let rasterize antialias device res annots pdf range = (Pdfpage.pages_of_pagetree pdf) (ilist 1 (Pdfpage.endpage pdf))) in + let pdf = if annots then Cpdfannot.remove_annotations range pdf else pdf in Sys.remove tmppdf; pdf