Package | Description |
---|---|
com.qoppa.pdf |
General classes used by different objects throughout the library.
|
com.qoppa.pdf.form |
Classes related to PDF Acroform and its form fields.
|
com.qoppa.pdf.permissions |
This package contains classes related to document permissions.
|
com.qoppa.pdfSecure |
jPDFSecure main classes, used encrypt and digitally sign PDF documents.
|
Modifier and Type | Class and Description |
---|---|
class |
PDFPermissionException
Exception thrown when there is any permission error.
|
class |
PDFSecurityException
Exceptions related to security problems.
|
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.operator.ContentSigner |
SigningInformation.getContentSigner(String pdfVersion)
Get the content signer based on the PDF file version.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(InputStream inStream,
IPassword password)
Static method to get the document information from a document from an InputStream.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(String fileName,
IPassword passwords)
Static method to get the document information from a document in a file.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(URL url,
IPassword password)
Static method to get the document information from a document from a URL.
|
abstract void |
DocumentInfo.setAuthor(String author)
Set the document's author.
|
abstract void |
DocumentInfo.setCreationDate(Date creationDate)
Set the document's creation date.
|
abstract void |
DocumentInfo.setCreator(String creator)
Set the document's creator.
|
abstract void |
DocumentInfo.setCustomProperty(String key,
String value)
Sets a custom application property in the document info for the document.
|
void |
SigningInformation.setCustomProperty(String key,
String value)
This method can be used to add additional custom properties to the signature dictionary.
|
abstract void |
DocumentInfo.setKeywords(String keywords)
Set the document's keywords.
|
abstract void |
DocumentInfo.setModifiedDate(Date modDate)
Deprecated.
The document's modified date will be set by the library at the time the document is saved.
|
void |
SigningInformation.setPermissions(int permissions)
This property is meaningful only if this is a certifying signature.
|
abstract void |
DocumentInfo.setProducer(String producer)
Set the document's producer.
|
abstract void |
DocumentInfo.setSubject(String subject)
Set the document's subject.
|
abstract void |
DocumentInfo.setTitle(String title)
Sets the document's title.
|
abstract void |
DocumentInfo.setXMPMetadata(byte[] xmpData)
Sets the XMP metadata block in the document.
|
abstract void |
DocumentInfo.setXMPMetadata(String xmpString,
String charsetName)
Sets the XMP metadata block in the document.
|
Constructor and Description |
---|
SigningInformation(KeyStore ks,
String entryAlias,
String aliasPWD)
Constructs a SigningInformation object and gets the digital ID from a Java KeyStore object.
|
SigningInformation(PrivateKey pk,
Certificate signerCert,
Certificate[] certChain,
String provider)
Constructs a SigningInformation object given a private key, signer certificate and certificate chain.
|
SigningInformation(String pkcs12File,
String ksPWD,
String entryAlias,
String aliasPWD)
Constructs a SigningInformation object and gets the digital ID from a named PKCS#12 file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SignatureField.addVerificationInformation()
Add verification information related to this signature.
|
void |
FormField.flattenField()
Flattens the field into the document's content layer.
|
String |
SignatureField.getCustomProperty(String key)
This method can be used to retrieve the values of custom properties in the signature field dictionary.
|
String |
SignatureField.getSignCustomProperty(String key)
This method can be used to retrieve the values of custom properties in the signature dictionary.
|
void |
FormField.reset()
Resets the field to its default value.
|
void |
SignatureField.setCustomProperty(String key,
String value)
This method can be used to add additional custom properties to the signature field dictionary.
|
Constructor and Description |
---|
DocMDPPermissions(int permissionLevel)
Create a new DocMDPPermissions object.
|
Modifier and Type | Method and Description |
---|---|
SignatureField |
PDFSecure.addSignatureField(int pageIndex,
String fieldName,
Rectangle2D bounds)
Adds a signature field to a page in the document.
|
void |
PDFSecure.clearPasswordPermissions(String currentPermissionsPwd)
Clears the security for this document.
|
void |
PDFSecure.clearSecurity(String currentPermissionsPwd)
Deprecated.
|
void |
PDFSecure.clearUsageRights()
Remove extended permissions from the document.
|
void |
PDFSecure.saveDocument(OutputStream outStream)
Saves this document to an output stream.
|
void |
PDFSecure.saveDocument(String fileName)
Saves this document to a file.
|
void |
PDFSecure.setPasswordPermissions(String newPermPwd,
String newOpenPwd,
PasswordPermissions permissions,
String currentPermPwd,
int encryptType)
Sets the security for this document.
|
void |
PDFSecure.setSecurity(String newPermPwd,
String newOpenPwd,
PasswordPermissions permissions,
String currentPermPwd,
int encryptType)
Deprecated.
|
void |
PDFSecure.signDocument(SignatureField signField,
SigningInformation signingInfo)
Signs this document using the given signature field.
|
boolean |
PDFSecure.usePermissionsPassword(String ownerPassword)
Tells the PDFSecure object that the permissions password is known, so all
permissions are granted.
|
Constructor and Description |
---|
PDFSecure(InputStream inStream,
IPassword password)
Loads a PDF document from an InputStream.
|
PDFSecure(String fileName,
IPassword password)
Loads a PDF document from a file.
|
PDFSecure(URL url,
IPassword password)
Loads a PDF document from a URL.
|