|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.pdf.PDFObject | +--org.apache.fop.pdf.PDFEncryption
class representing a /Filter /Standard object.
Fields inherited from class org.apache.fop.pdf.PDFObject |
generation, number |
Constructor Summary | |
PDFEncryption(int number)
create a /Filter /Standard object. |
Method Summary | |
static boolean |
encryptionAvailable()
|
java.lang.String |
getFileID(int index)
This method returns the indexed file ID |
void |
init()
This method initializes the encryption algorithms and values |
PDFFilter |
makeFilter(int number,
int generation)
Creates PDFFilter for the encryption object |
void |
setAllowCopyContent(boolean value)
Set whether the document will allow the content to be extracted |
void |
setAllowEditAnnotation(boolean value)
Set whether the document will allow annotation modificcations |
void |
setAllowEditContent(boolean value)
Set whether the document will allow content editting |
void |
setAllowPrint(boolean value)
Set whether the document will allow printing. |
void |
setOwnerPassword(java.lang.String value)
Sets the owner password for the PDF |
void |
setUserPassword(java.lang.String value)
This method allows the setting of the user password |
byte[] |
toPDF()
represent the object in PDF |
Methods inherited from class org.apache.fop.pdf.PDFObject |
getNumber, output, referencePDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PDFEncryption(int number)
number
- the object's numberMethod Detail |
public void setUserPassword(java.lang.String value)
value
- The string to use as the user password. It may be blank but not null.public void setOwnerPassword(java.lang.String value)
value
- The owner passwordpublic void setAllowPrint(boolean value)
value
- The new permision valuepublic void setAllowCopyContent(boolean value)
value
- The new permission valuepublic void setAllowEditContent(boolean value)
value
- The new permission valuepublic void setAllowEditAnnotation(boolean value)
value
- The new permission valuepublic java.lang.String getFileID(int index)
index
- The index to access the file IDpublic void init()
public PDFFilter makeFilter(int number, int generation)
number
- The object numbergeneration
- The objects generationpublic byte[] toPDF() throws java.lang.IllegalStateException
public static boolean encryptionAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |