|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Object representation of a PDF document. This interface provides information about the document and its pages.
| Field Summary | |
static String |
PAGEMODE_FULLSCREEN
|
static String |
PAGEMODE_USEATTACHMENTS
|
static String |
PAGEMODE_USENONE
|
static String |
PAGEMODE_USEOC
|
static String |
PAGEMODE_USEOUTLINES
|
static String |
PAGEMODE_USETHUMBS
|
| Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
| Method Summary | |
void |
addDocumentListener(IDocumentListener listener)
Internal method to keep track of document events. |
AcroForm |
getAcroForm()
Returns the AcroForm in this document. |
DocumentInfo |
getDocumentInfo()
Returns a DocumentInfo object containing the PDF standard document info if present. |
File |
getFile()
Returns the file for the current pdf document. |
String |
getFileModifiedID()
Return the PDF document's modified ID. |
String |
getFileName()
Returns the file name that this document was loaded from. |
String |
getFileOriginalID()
Return the PDF document's original ID. |
IPDFPage |
getIPage(int pageIndex)
Returns an object that implements IPDFPage given the page number. |
Layer |
getLayer(int layerIndex)
Returns a particular PDF layer given its index. |
int |
getLayerCount()
Returns the number of PDF layers in this document. |
Pageable |
getPageable(PrinterJob pJob)
Returns an object that implements Pageable for this PDF document. |
int |
getPageCount()
Returns the number of pages in this document. |
String |
getPageMode()
Returns the value of the page mode viewer preference in the document. |
PDFPermissions |
getPermissions()
Returns the Permissions object for this document. |
PrintSettings |
getPrintSettings()
Get the current PrintSettings object. |
Bookmark |
getRootBookmark()
Returns the bookmark tree for this document. |
void |
print(PrintSettings printSettings)
Prints this PDF document. |
void |
removeDocumentListener(IDocumentListener listener)
Internal method to keep track of document events. |
void |
setPrintSettings(PrintSettings printSettings)
Set the PrintSettings to be used on the next printout. |
| Methods inherited from interface java.awt.print.Printable |
print |
| Field Detail |
public static final String PAGEMODE_USENONE
public static final String PAGEMODE_USEOUTLINES
public static final String PAGEMODE_USETHUMBS
public static final String PAGEMODE_FULLSCREEN
public static final String PAGEMODE_USEOC
public static final String PAGEMODE_USEATTACHMENTS
| Method Detail |
public int getPageCount()
public String getPageMode()
public PDFPermissions getPermissions()
public IPDFPage getIPage(int pageIndex)
pageIndex - Index of the page to return.public int getLayerCount()
public Layer getLayer(int layerIndex)
public void addDocumentListener(IDocumentListener listener)
public void removeDocumentListener(IDocumentListener listener)
public void print(PrintSettings printSettings)
throws PDFPermissionException,
PrinterException
printSettings - Print job settings. Use this object to tell
jPDFProcess how to print the document. If null, the library will
print using default settings.
PDFPermissionException
PrinterExceptionpublic File getFile()
public String getFileName()
public String getFileOriginalID()
public String getFileModifiedID()
public DocumentInfo getDocumentInfo()
public Bookmark getRootBookmark()
public PrintSettings getPrintSettings()
public void setPrintSettings(PrintSettings printSettings)
printSettings - Settings to use on the next printout.public AcroForm getAcroForm()
public Pageable getPageable(PrinterJob pJob)
pJob - PrinterJob object where the Pageable will be used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||