mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-01-18 19:51:24 +08:00
#405 allow user access permissions in encryption to be bigger than int
This commit is contained in:
@@ -68,7 +68,8 @@
|
||||
|
||||
if (encryptionDictionary.TryGetOptionalTokenDirect(NameToken.P, tokenScanner, out NumericToken accessToken))
|
||||
{
|
||||
access = (UserAccessPermissions) accessToken.Int;
|
||||
// This can be bigger than an integer.
|
||||
access = (UserAccessPermissions) accessToken.Long;
|
||||
}
|
||||
|
||||
byte[] userEncryptionBytes = null, ownerEncryptionBytes = null;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
using System;
|
||||
|
||||
[Flags]
|
||||
internal enum UserAccessPermissions
|
||||
internal enum UserAccessPermissions : long
|
||||
{
|
||||
/// <summary>
|
||||
/// (Revision 2) Print the document.
|
||||
|
||||
Reference in New Issue
Block a user