Adobe Acrobat SDK Contents
Developing Plug-ins and Applications 8
14 Working with Document Security ..........................................................................................154
About document security ...................................................................................................................................................... 154
About security handlers.......................................................................................................................................................... 154
Adding a security handler................................................................................................................................................ 155
Opening a secured file ...................................................................................................................................................... 157
Saving a secured file .......................................................................................................................................................... 158
Setting security for a document .......................................................................................................................................... 159
Saving a file with an encryption dictionary............................................................................................................... 159
Opening an encrypted file............................................................................................................................................... 159
15 Working with Unicode Paths ..................................................................................................160
About Unicode paths............................................................................................................................................................... 160
Creating Unicode file path application logic................................................................................................................... 160
Retrieving Unicode path values........................................................................................................................................... 161
Creating an ASFileSys object .......................................................................................................................................... 162
Creating an ASFileSys object that supports Unicode paths................................................................................ 163
16 Working with Host Function Tables .......................................................................................164
About host function tables.................................................................................................................................................... 164
Exporting host function tables............................................................................................................................................. 165
Creating HFT methods...................................................................................................................................................... 166
Creating HFT method definitions.................................................................................................................................. 166
Creating HFT callback functions.................................................................................................................................... 168
Creating new Host Function Tables ............................................................................................................................. 169
Examining HFT header and source files...................................................................................................................... 170
Examining an HFT header file .................................................................................................................................. 170
Examining an HFT source file ................................................................................................................................... 171
Importing an existing HFT...................................................................................................................................................... 173
Invoking HFT methods ............................................................................................................................................................ 174
Replacing HFT methods.......................................................................................................................................................... 174
Migrating non-HFT PDF Library applications to HFT applications.......................................................................... 176
17 Working with Cos Objects.......................................................................................................178
About Cos objects..................................................................................................................................................................... 178
About direct and indirect objects ................................................................................................................................. 179
About Cos object types..................................................................................................................................................... 179
Cos strings....................................................................................................................................................................... 179
Cos arrays......................................................................................................................................................................... 181
Cos names ....................................................................................................................................................................... 181
Cos dictionaries ............................................................................................................................................................. 182
Cos streams..................................................................................................................................................................... 183
Working with Cos strings........................................................................................................................................................ 183
Creating Cos strings ........................................................................................................................................................... 183
Retrieving the string value............................................................................................................................................... 184
Working with Cos arrays ......................................................................................................................................................... 184
Creating Cos arrays............................................................................................................................................................. 184
Retrieving Cos array values ............................................................................................................................................. 185
Working with Cos dictionaries.............................................................................................................................................. 186
Creating Cos dictionaries ................................................................................................................................................. 186
Retrieving values from a Cos dictionary ..................................................................................................................... 187
Querying a Cos dictionary for a key.............................................................................................................................. 188