|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adobe.acrobat.PDFDocument
Beans-level interface to a ui-less PDF document.
Field Summary | |
static java.lang.String |
Author_K
The info dictionary key for a PDFDocument's author. |
static java.lang.String |
CreationDate_K
The info dictionary key for a PDFDocument's creation date. |
static java.lang.String |
Creator_K
The info dictionary key for a PDFDocument's creator. |
static java.lang.String |
Keywords_K
The info dictionary key for a PDFDocument's keywords. |
static java.lang.String |
ModDate_K
The info dictionary key for a PDFDocument's last modification date. |
static java.lang.String |
Producer_K
The info dictionary key for a PDFDocument's producer. |
static java.lang.String |
Subject_K
The info dictionary key for a PDFDocument's subject. |
static java.lang.String |
Title_K
The info dictionary key for a PDFDocument's title. |
Constructor Summary | |
PDFDocument(ByteArraySource bas)
Create a PDFDocument from the given ByteArraySource. |
|
PDFDocument(java.io.File file)
Create a PDFDocument from the given File. |
|
PDFDocument(java.net.URL url)
Create a PDFDocument from the given URL. |
Method Summary | |
void |
drawPage(int pageNum,
java.awt.Image image,
AffineTransform transform,
java.awt.Rectangle clipRect,
java.awt.Component component)
Draw the contents of the given page number into the given Image object through the given AffineTransform. |
java.lang.String |
getDocumentInfo(java.lang.String key)
Get the entry in this PDFDocument's info dictionary as a String. |
java.util.Calendar |
getDocumentInfoDate(java.lang.String key)
Get the entry in this PDFDocument's info dictionary as a Calendar. |
int |
getNumPages()
Get the number of pages in this PDFDocument. |
com.adobe.acrobat.sidecar.FloatPoint |
getPageSize(int pageNum)
Get the size of the given page, in page space. |
PDFBookmark |
getRootBookmark()
Get the PDFBookmark that is the root of this PDFDocument's bookmark tree. |
com.adobe.acrobat.pdfobjstore.PDFObjStore |
getStore()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String Author_K
public static final java.lang.String CreationDate_K
public static final java.lang.String ModDate_K
public static final java.lang.String Creator_K
public static final java.lang.String Producer_K
public static final java.lang.String Title_K
public static final java.lang.String Subject_K
public static final java.lang.String Keywords_K
Constructor Detail |
public PDFDocument(java.net.URL url) throws java.lang.Exception
url
- the URL
containing the PDF document's contentspublic PDFDocument(java.io.File file) throws java.lang.Exception
file
- the File
containing the PDF document's contentspublic PDFDocument(ByteArraySource bas) throws java.lang.Exception
the
- ByteArraySource
containing the PDF document's contentsMethod Detail |
public int getNumPages() throws java.lang.Exception
public com.adobe.acrobat.sidecar.FloatPoint getPageSize(int pageNum) throws java.lang.Exception
pageNum
- the number of the page whose sizepublic com.adobe.acrobat.pdfobjstore.PDFObjStore getStore()
public void drawPage(int pageNum, java.awt.Image image, AffineTransform transform, java.awt.Rectangle clipRect, java.awt.Component component) throws java.lang.Exception
pageNum
- the page number to drawImage
- the image in which the drawing occurstransform
- the transformation matrix from user space to device spaceclipRect
- the Rectangle to which all drawing should be clipped (in device
space). This parameter may be null, in which case drawing is clipped only to
the page's crop box.comp
- a Component object that must be provided by the caller so that
the rendering engine can create its own Image objectspublic java.lang.String getDocumentInfo(java.lang.String key) throws java.lang.Exception
key
- the key being looked up, e.g., Author_K
,
Producer_K
, etc.public java.util.Calendar getDocumentInfoDate(java.lang.String key) throws java.lang.Exception
key
- the key being looked up, e.g., ModDate_K
,
CreationDate_K
, etc.public PDFBookmark getRootBookmark() throws java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |