|
|||||||||||
| 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 |
MAGNIFICATION_FIT_ACTUAL
|
static String |
MAGNIFICATION_FIT_HEIGHT
|
static String |
MAGNIFICATION_FIT_PAGE
|
static String |
MAGNIFICATION_FIT_VISIBLE
|
static String |
MAGNIFICATION_FIT_WIDTH
|
static String |
PAGELAYOUT_ONECOLUMN
|
static String |
PAGELAYOUT_SINGLEPAGE
|
static String |
PAGELAYOUT_TWOCOLUMNLEFT
|
static String |
PAGELAYOUT_TWOPAGELEFT
|
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. |
Vector |
getEmbeddedFiles()
Returns a list of embedded files, if any, in the document. |
File |
getFile()
Deprecated. Use getSource() instead |
String |
getFileModifiedID()
Return the PDF document's modified ID. |
String |
getFileName()
Deprecated. Use getSource() instead. |
String |
getFileOriginalID()
Return the PDF document's original ID. |
int |
getInitialPage()
Returns the value saved as the initial page to be viewed when the document is opened. |
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. |
String |
getMagnification()
Returns the magnification value of the OpenAction key. |
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 |
getPageLayout()
Returns the value of the page layout key for this document. |
String |
getPageMode()
Returns the value of the page mode viewer preference in the document. |
PDFSource |
getPDFSource()
Returns an object representing the source of the PDF content. |
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. |
String |
getText()
Returns the text content of the entire document, as a String |
String |
getText(int pageIndex)
Returns the text content of this page as a String. |
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 MAGNIFICATION_FIT_WIDTH
public static final String MAGNIFICATION_FIT_VISIBLE
public static final String MAGNIFICATION_FIT_HEIGHT
public static final String MAGNIFICATION_FIT_PAGE
public static final String MAGNIFICATION_FIT_ACTUAL
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
public static final String PAGELAYOUT_SINGLEPAGE
public static final String PAGELAYOUT_ONECOLUMN
public static final String PAGELAYOUT_TWOCOLUMNLEFT
public static final String PAGELAYOUT_TWOPAGELEFT
| Method Detail |
public int getPageCount()
public String getPageMode()
public PDFPermissions getPermissions()
public String getMagnification()
public String getPageLayout()
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 Vector getEmbeddedFiles()
public File getFile()
public PDFSource getPDFSource()
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.
public String getText()
throws PDFException
String
PDFException
public String getText(int pageIndex)
throws PDFException
String.
pageIndex - The index of the page to get the text for.
PDFExceptionpublic int getInitialPage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||