DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class HighSecurity

java.lang.Object
  |
  +--com.cete.dynamicpdf.Security
        |
        +--com.cete.dynamicpdf.HighSecurity

public class HighSecurity
extends Security

Represents high 128 bit PDF document security.128 bit PDF security is compatible with PDF version 1.4 and higher and can be read with Adobe Acrobat Reader version 5 and higher. Older readers will not be able to read document encrypted with this security.

Licensing:
This property is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
HighSecurity()
          Initializes a new instance of the HighSecurity class.
HighSecurity(java.lang.String password)
          Initializes a new instance of the HighSecurity class.
HighSecurity(java.lang.String ownerPassword, java.lang.String userPassword)
          Initializes a new instance of the HighSecurity class.
 
Method Summary
 void draw(DocumentWriter writer, Encrypter encrypter)
          Draws the encrypter dictionary to the given DocumentWriter object.
 boolean getAllowAccessibility()
          Gets if accessibility programs should be able to read the documents text and images for the user.
 boolean getAllowDocumentAssembly()
          Gets if the document can be assembled and manipulated by the user.
 boolean getAllowFormFilling()
          Gets if form filling should be allowed by the user.
 boolean getAllowHighResolutionPrinting()
          Gets if the document can be printed at a high resolution by the user.
 Encrypter getEncrypter(byte[] id)
          Gets a 40 bit Encrypter object to be used for encrypting the document.
 void setAllowAccessibility(boolean allowAccessibility)
          Sets if accessibility programs should be able to read the documents text and images for the user.
 void setAllowDocumentAssembly(boolean allowDocumentAssembly)
          Sets if the document can be assembled and manipulated by the user.
 void setAllowFormFilling(boolean allowFormFilling)
          Sets if form filling should be allowed by the user.
 void setAllowHighResolutionPrinting(boolean allowHighResolutionPrinting)
          Sets if the document can be printed at a high resolution by the user.
 
Methods inherited from class com.cete.dynamicpdf.Security
binPassword, getAllowCopy, getAllowEdit, getAllowPrint, getAllowUpdateAnnotsAndFields, getFiller, getOwnerPassword, getUserPassword, setAllowCopy, setAllowEdit, setAllowPrint, setAllowUpdateAnnotsAndFields, setOwnerPassword, setUserPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighSecurity

public HighSecurity()
Initializes a new instance of the HighSecurity class.


HighSecurity

public HighSecurity(java.lang.String ownerPassword,
                    java.lang.String userPassword)
Initializes a new instance of the HighSecurity class.

Parameters:
ownerPassword - the String owner password.
userPassword - the String user password.

HighSecurity

public HighSecurity(java.lang.String password)
Initializes a new instance of the HighSecurity class.

Parameters:
password - the String owner and user password.
Method Detail

setAllowFormFilling

public void setAllowFormFilling(boolean allowFormFilling)
Sets if form filling should be allowed by the user.

Parameters:
allowFormFilling - boolean specifying if form filling should be allowed by the user.

getAllowFormFilling

public boolean getAllowFormFilling()
Gets if form filling should be allowed by the user.

Returns:
boolean value if form filling should be allowed by the user.

setAllowAccessibility

public void setAllowAccessibility(boolean allowAccessibility)
Sets if accessibility programs should be able to read the documents text and images for the user.

Parameters:
allowAccessibility - boolean accessibility.

getAllowAccessibility

public boolean getAllowAccessibility()
Gets if accessibility programs should be able to read the documents text and images for the user.

Returns:
boolean accessibility.

setAllowDocumentAssembly

public void setAllowDocumentAssembly(boolean allowDocumentAssembly)
Sets if the document can be assembled and manipulated by the user.

Parameters:
allowDocumentAssembly - boolean value whether the document can be assembled and manipulated by the user.

getAllowDocumentAssembly

public boolean getAllowDocumentAssembly()
Gets if the document can be assembled and manipulated by the user.

Returns:
boolean value whether the document can be assembled and manipulated by the user.

setAllowHighResolutionPrinting

public void setAllowHighResolutionPrinting(boolean allowHighResolutionPrinting)
Sets if the document can be printed at a high resolution by the user.

Parameters:
allowHighResolutionPrinting - boolean whether the document can be printed at a high resolution by the user.

getAllowHighResolutionPrinting

public boolean getAllowHighResolutionPrinting()
Gets if the document can be printed at a high resolution by the user.

Returns:
boolean whether the document can be printed at a high resolution by the user.

getEncrypter

public Encrypter getEncrypter(byte[] id)
Gets a 40 bit Encrypter object to be used for encrypting the document.

Specified by:
getEncrypter in class Security
Parameters:
id - byte array ID of the current PDF document.
Returns:
An Encrypter object.
See Also:
Encrypter

draw

public void draw(DocumentWriter writer,
                 Encrypter encrypter)
Draws the encrypter dictionary to the given DocumentWriter object.

Specified by:
draw in class Security
Parameters:
writer - DocumentWriter object to receive the output.
encrypter - Encrypter object used to encrypt the document.
See Also:
DocumentWriter, Encrypter

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v4.0.1 for Java generated on October 06, 2006
© Copyright 2006, ceTe Software