|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.bean.PDFParameter
public class PDFParameter
The PDFParameter
class is used for exporting to PDF. It contains all the
information for exporting report results.
Field Summary | |
---|---|
static int |
AllowAll
The operation permitted when the document is opened with the user password |
static int |
AllowAnyExceptExtract
The operation permitted when the document is opened with the user password |
static int |
AllowCommentFillIn
The operation permitted when the document is opened with the user password |
static int |
AllowCopy
The operation permitted when the document is opened with the user password |
static int |
AllowFillInSign
The operation permitted when the document is opened with the user password |
static int |
AllowHighResPrint
The operation permitted when the document is opened with the user password |
static int |
AllowInsertDeleteRotate
The operation permitted when the document is opened with the user password |
static int |
AllowLayoutFillInSign
The operation permitted when the document is opened with the user password |
static int |
AllowLowResPrint
The operation permitted when the document is opened with the user password |
static int |
AllowNone
The operation permitted when the document is opened with the user password |
static int |
AllowScreenReaders
The operation permitted when the document is opened with the user password |
static int |
SELF_SIGNED
The self signed method. |
static boolean |
STRENGTH128BITS
Type of encryption |
static boolean |
STRENGTH40BITS
Type of encryption |
static int |
VERISIGN_SIGNED
The VeriSign method. |
static int |
WINCER_SIGNED
The Windows Certificate Security method. |
Constructor Summary | |
---|---|
PDFParameter()
constructor |
Method Summary | |
---|---|
PDFParameter |
copy()
Adding this method for MailInformation can clone this object. |
java.lang.String |
getDigitalIDFilePassword()
Gets the password of the digital ID file. |
java.io.InputStream |
getDigitalIDFileStream()
Gets the digital ID file path. |
int[][] |
getExportPageRange()
Gets the exporting page range. |
int[] |
getExportPages()
Gets the exporting page number. |
int |
getImageCompressRatio()
Gets the image compression ratio of the pdf file. |
int |
getMaxPageOfOneFile()
Gets the max size of one PDF file. |
int |
getMaxSizeOfOneFile()
Gets the max size of one PDF file. |
java.lang.String |
getOwnerPassword()
Gets the owner password of the pdf document. |
int |
getPermissions()
Gets the permissions of pdf document. |
int |
getSignatureMethod()
Gets the signature method for the document, which can be SELF_SIGNED, WINCER_SIGNED and VERISIGN_SIGNED. |
java.lang.String |
getSigningContact()
Gets the signing contact. |
java.lang.String |
getSigningLocation()
Gets the signing location. |
java.lang.String |
getSigningReason()
Gets the signing reason. |
java.lang.String |
getUserPassword()
Gets the user password of the pdf document. |
boolean |
hasDrill()
Gets the pdf file with Drill Down. |
boolean |
hasEncryption()
|
boolean |
hasSignature()
|
boolean |
hasToc()
Gets the pdf file with TOC. |
boolean |
isSimPrintMode()
Gets the pdf print mode when generating charts and barcodes. |
boolean |
isStrength128Bits()
Gets if the pdf document Encryption level is High(128-bit RC4) or Low(40-bit RC4). |
boolean |
isTransparent()
Deprecated. this is replaced by the method setImageCompressRatio(int imageCompressRatio) |
boolean |
noMargin()
Gets the document whether it has margin or not. |
void |
setDigitalSignature(int signatureMethod,
byte[] digitalIDValues,
java.lang.String digitalIDFilePassword)
Sets the digital signature options for this document. |
void |
setDigitalSignature(int signatureMethod,
java.io.InputStream digitalIDFileStream,
java.lang.String digitalIDFilePassword)
Sets the digital signature options for this document. |
void |
setDigitalSignature(int signatureMethod,
java.lang.String digitalIDFilePath,
java.lang.String digitalIDFilePassword)
Sets the digital signature options for this document. |
void |
setDrill(boolean hasDrill)
Sets the pdf file with Drill Down. |
void |
setEncryption(boolean strength128Bits,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Sets the encryption options for this document. |
void |
setExportPageRange(int[][] pageRange)
Sets the exporting page range. |
void |
setExportPages(int[] pages)
Sets the exporting page number. |
void |
setImageCompressRatio(int imageCompressRatio)
Sets the image compression ratio of the pdf file. |
void |
setIsSimPrintMode(boolean isSimPrintMode)
Sets the pdf print mode when generating charts and barcodes. |
void |
setMaxPageOfOneFile(int maxPageOfOneFile)
Sets the max size of one PDF File. |
void |
setMaxSizeOfOneFile(int maxSizeOfOneFile)
Sets the max size of one PDF File. |
void |
setNoMargin(boolean noMargin)
Sets the pdf file without page margin. |
void |
setPassword(java.lang.String password)
|
void |
setSigningContact(java.lang.String contact)
Sets the signing contact. |
void |
setSigningLocation(java.lang.String location)
Sets the signing location. |
void |
setSigningReason(java.lang.String reason)
Sets the signing reason. |
void |
setToc(boolean hasToc)
Sets the pdf file with TOC. |
void |
setTransparent(boolean transparent)
Deprecated. this is replaced by the method setImageCompressRatio(int imageCompressRatio) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AllowNone
public static final int AllowLowResPrint
public static final int AllowHighResPrint
public static final int AllowInsertDeleteRotate
public static final int AllowFillInSign
public static final int AllowCommentFillIn
public static final int AllowAnyExceptExtract
public static final int AllowCopy
public static final int AllowScreenReaders
public static final int AllowLayoutFillInSign
public static final int AllowAll
public static final boolean STRENGTH40BITS
public static final boolean STRENGTH128BITS
public static final int SELF_SIGNED
public static final int VERISIGN_SIGNED
public static final int WINCER_SIGNED
Constructor Detail |
---|
public PDFParameter()
Method Detail |
---|
public void setNoMargin(boolean noMargin)
noMargin
- indicates to generate the pdf file without page marginpublic void setIsSimPrintMode(boolean isSimPrintMode)
isSimPrintMode
- if the value is true, then specifies to generate the
charts and barcodes using Vector graphics, else generates charts and barcodes
using images(recommended)public void setImageCompressRatio(int imageCompressRatio)
imageCompressRatio
- specifies to generate the pdf file with compressed imagepublic void setToc(boolean hasToc)
hasToc
- specifies to generate the pdf file with TOCpublic void setDrill(boolean hasDrill)
hasDrill
- specifies to generate the pdf file with Drill Downpublic void setExportPages(int[] pages)
pages
- the exporting page numberpublic void setExportPageRange(int[][] pageRange)
pageRange
- the exporting page rangepublic boolean noMargin()
public boolean isSimPrintMode()
public int getImageCompressRatio()
public boolean hasToc()
public boolean hasDrill()
public int[] getExportPages()
public int[][] getExportPageRange()
public void setMaxSizeOfOneFile(int maxSizeOfOneFile)
maxSizeOfOnePage
- public int getMaxSizeOfOneFile()
public void setMaxPageOfOneFile(int maxPageOfOneFile)
maxSizeOfOnePage
- public int getMaxPageOfOneFile()
public void setPassword(java.lang.String password)
public void setEncryption(boolean strength128Bits, java.lang.String userPassword, java.lang.String ownerPassword, int permissions)
strength128Bits
- true
for 128 bit key length, false
for 40 bit key lengthuserPassword
- the user password. It can be null or empty.ownerPassword
- the owner password. It can be null or empty.permissions
- the user permissionspublic void setDigitalSignature(int signatureMethod, java.io.InputStream digitalIDFileStream, java.lang.String digitalIDFilePassword)
signatureMethod
- the digital signature methoddigitalIDFileStream
- the stream of the digital id filedigitalIDFilePassword
- the Digital ID file passwordpublic void setDigitalSignature(int signatureMethod, byte[] digitalIDValues, java.lang.String digitalIDFilePassword)
signatureMethod
- the digital signature methoddigitalIDValues
- the contents of the digital id filedigitalIDFilePassword
- the Digital ID file passwordpublic void setDigitalSignature(int signatureMethod, java.lang.String digitalIDFilePath, java.lang.String digitalIDFilePassword)
signatureMethod
- the digital signature methoddigitalIDFilePath
- the Digital ID file pathdigitalIDFilePassword
- the Digital ID file passwordpublic boolean hasSignature()
public boolean hasEncryption()
public void setSigningReason(java.lang.String reason)
reason
- the signing reasonpublic void setSigningLocation(java.lang.String location)
location
- the signing locationpublic void setSigningContact(java.lang.String contact)
contact
- the signing contactpublic boolean isStrength128Bits()
public java.lang.String getUserPassword()
public java.lang.String getOwnerPassword()
public int getPermissions()
public int getSignatureMethod()
public java.io.InputStream getDigitalIDFileStream()
public java.lang.String getDigitalIDFilePassword()
public java.lang.String getSigningReason()
public java.lang.String getSigningLocation()
public java.lang.String getSigningContact()
public boolean isTransparent()
public void setTransparent(boolean transparent)
transparent
- public PDFParameter copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |