From a216723708df3242ec6a1e2c11cc8b50da88dd27 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Mon, 29 May 2023 13:05:37 +0100 Subject: [PATCH] Fix permissions for -set-annotations --- cpdfcommand.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index 49974f8..41d4912 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -834,7 +834,7 @@ let banned banlist = function | ExtractText | ExtractImages | ExtractFontFile | AddPageLabels | RemovePageLabels | OutputJSON | OCGCoalesce | OCGRename | OCGList | OCGOrderAll | PrintFontEncoding _ | TableOfContents | Typeset _ | Composition _ - | TextWidth _ + | TextWidth _ | SetAnnotations _ | CopyAnnotations _ -> false (* Always allowed *) (* Combine pages is not allowed because we would not know where to get the -recrypt from -- the first or second file? *) @@ -846,9 +846,9 @@ let banned banlist = function | TwoUp|TwoUpStack|RemoveBookmarks|AddRectangle|RemoveText| Draft|Shift|Scale|ScaleToFit|RemoveAttachedFiles| RemoveAnnotations|RemoveFonts|Crop|RemoveCrop|Trim|RemoveTrim|Bleed|RemoveBleed|Art|RemoveArt| - CopyBox|MediaBox|HardBox _|SetTrapped|SetAnnotations _|SetUntrapped|Presentation| + CopyBox|MediaBox|HardBox _|SetTrapped|SetUntrapped|Presentation| BlackText|BlackLines|BlackFills|CopyFont _|StampOn _|StampUnder _|StampAsXObject _| - AddText _|ScaleContents _|AttachFile _|CopyAnnotations _| ThinLines _ | RemoveClipping | RemoveAllText + AddText _|ScaleContents _|AttachFile _| ThinLines _ | RemoveClipping | RemoveAllText | Prepend _ | Postpend _ | Draw -> mem Pdfcrypt.NoEdit banlist