10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.6 Encrypted PDF DocumentspCOS supports encrypted and unencrypted PDF documents as input. However, full objectretrieval for encrypted documents requires the appropriate master password to besupplied when opening the document. Depending on the availability of user and masterpassword, encrypted documents can be processed in one of the pCOS modes describedbelow.Full pCOS mode (mode 2). Encrypted PDFs can be processed without any restrictionprovided the master password has been supplied upon opening the file. All objects willbe returned unencrypted. Unencrypted documents will always be opened in full pCOSmode.Restricted pCOS mode (mode 1). If the document has been opened without the appropriatemaster password and does not require a user password (or the user password hasbeen supplied) pCOS operations are subject to the following restriction: The contents ofobjects with type string, stream, or fstream can not be retrieved with the following exceptions:> The objects /Root/Metadata and /Info/* (document info keys) can be retrieved ifnocopy=false or plainmetadata=true.> The objects bookmarks[...]/Title and annots[...]/Contents (bookmark and annotationcontents) can be retrieved if nocopy=false, i.e. if text extraction is allowed for themain text on the pages.Minimum pCOS mode (mode 0). Regardless of the encryption status and the availabilityof passwords, the universal pCOS pseudo objects listed in Table 8.3 are always available.For example, the encrypt pseudo object can be used to query a document’s encryptionstatus. Encrypted objects can not be retrieved in minimum pCOS mode.Table 8.6 lists the resulting pCOS modes for various password combinations. Dependingon the document’s encryption status and the password supplied when openingthe file, PDF object paths may be available in minimum, restricted, or full pCOSmode. Trying to retrieve a pCOS path which is inappropriate for the respective modewill raise an exception.Table 8.6 Resulting pCOS modes for various password combinationsIf you know...none of the passwordsonly the user passwordthe master password...pCOS will run in...restricted pCOS mode if no user password is set, minimum pCOS modeotherwiserestricted pCOS modefull pCOS mode8.6 Encrypted PDF Documents 193

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!