Adjusted permissions for -change-id and -copy-id

This commit is contained in:
John Whitington 2014-11-13 15:13:54 +00:00
parent 11d672f912
commit 43950455fb
1 changed files with 3 additions and 3 deletions

View File

@ -555,15 +555,15 @@ let banned banlist = function
| ListAttachedFiles | ListAnnotationsMore | ListAnnotations
| ListBookmarks | ImageResolution _ | MissingFonts
| PrintPageLabels | Clean | Compress | Decompress
| RemoveUnusedResources -> false (* Always allowed *)
| RemoveUnusedResources | ChangeId | CopyId _ -> false (* Always allowed *)
| Decrypt | Encrypt -> true (* Never allowed *)
| ExtractText | ExtractImages | ExtractFontFile -> mem Pdfcrypt.NoExtract banlist
| AddBookmarks _ | PadBefore | PadAfter | PadEvery _ | PadMultiple _
| Merge | Split | SplitOnBookmarks _ | RotateContents _ | Rotate _
| Rotateby _ | Upright | VFlip | HFlip | SetPageLayout _
| SetPageMode _ | HideToolbar _ | HideMenubar _ | HideWindowUI _
| FitWindow _ | CenterWindow _ | DisplayDocTitle _ | ChangeId
| RemoveId | CopyId _ | OpenAtPageFit _ | OpenAtPage _
| FitWindow _ | CenterWindow _ | DisplayDocTitle _
| RemoveId | OpenAtPageFit _ | OpenAtPage _
| AddPageLabels | RemovePageLabels -> mem Pdfcrypt.NoAssemble banlist
| _ -> mem Pdfcrypt.NoEdit banlist