Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 188

Previous Page 187   Index   Next Page 189

Function Reference
Page 188 of 750
Password encodings
On Windows, Linux, and Unix operating systems passwords are converted to the code page 1252
(WinAnsi) and then to PDFDoc encoding. On Mac OS X or iOS passwords are converted to
MacRoman and then to PDFDoc encoding. PDFDoc encoding is a superset of WinAnsi and
MacRoman encoding that ensures that a password can be correctly interpreted on these operating
systems.
UTF-8 Passwords
All Ansi functions accept UTF-8 Unicode strings as input if the flag gfAnsiStringIsUTF8 is set (see
SetGStateFlags() for further information). However, only the encryption handlers klAES256 and
klAESRev6 support Unicode passwords.
For every other encryption handler DynaPDF converts the string to the code page 1252 on Windows,
Linux, or Unix operating systems, or to MacRoman on Mac OS X and iOS.
Encryption flags
As mentioned earlier only specific flag combinations are allowed to use depending on the encryption
filter. We want now determine how the 40 bit encryption flags can be used in comparison to the
Acrobat input mask. The encryption mask in Acrobat 9 looks as follows:
 

Previous topic: Passwords

Next topic: CloseImportFile