public class PasswordPromptEncryptionHandler extends StandardEncryptionHandler
StandardEncryptionHandler
that will pop up a
password dialog to request the password if necessary.
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
CHANGE_ALL, CHANGE_ANNOTATIONS, CHANGE_FORMS, CHANGE_LAYOUT, CHANGE_NONE, EXTRACT_ACCESSIBILITY, EXTRACT_ALL, EXTRACT_NONE, PRINT_HIGHRES, PRINT_LOWRES, PRINT_NONE
Constructor and Description |
---|
PasswordPromptEncryptionHandler(Component parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
prepareToDecrypt()
This method is called just before the PDF is read in.
|
clone, finishedDecrypt, finishedEncrypt, getChange, getDecryptedStreamLength, getDecryptionStream, getDescription, getEncryptedStreamLength, getEncryptionStream, getExtract, getFilterName, getPrint, getSubFilterName, getVersion, hashCode, hasRight, isEmbeddedFileEncrypted, isMetadataEncrypted, isOwnerPasswordKnown, isRequired, isStreamEncrypted, isStringEncrypted, prepareToEncrypt, setAcrobat3Level, setAcrobat5Level, setAcrobat6Level, setAcrobat7Level, setAcrobat9Level, setAcrobatXLevel, setOwnerPassword, setUserPassword
containsKey, getArrayValueSize, getBooleanValue, getDictionaryValueKeys, getFileId, getNameValue, getNumericValue, getStringValue, getTextStringValue, isChanged, markChanged, putArrayValue, putBooleanValue, putDictionaryValue, putNameValue, putNumericValue, putStringValue, putTextStringValue, setFileId
public PasswordPromptEncryptionHandler(Component parent)
public boolean equals(Object o)
equals
in class StandardEncryptionHandler
public void prepareToDecrypt() throws IOException
EncryptionHandler
Encrypt
dictionary by way of the various get...
methods, and use them and the value of EncryptionHandler.getFileId()
to set its internal state so that
it's ready to start decryption. It may throw an IOException
if these parameters
are invalid, in which case the document cannot be read.prepareToDecrypt
in class StandardEncryptionHandler
IOException
Copyright © 2001-2017 Big Faceless Organization