|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Object representation of a page in a PDF document. This interface provides information about a page in a PDF document and has methods to paint and print the page.
| Method Summary | |
Vector |
findText(String searchText,
boolean caseSensitive,
boolean wholeWords)
This method searches for the given text in the page. |
Vector |
findTextWithContext(String searchText,
boolean caseSensitive,
boolean wholeWords)
This method searches for the given text in the page. |
Vector |
getAnnotations()
Returns a list of PDF annotations in this page. |
Rectangle2D |
getArtBox()
Return this page's Art Box. |
Rectangle2D |
getBleedBox()
Return this page's Bleed Box. |
Rectangle2D |
getCropBox()
Return this page's Crop Box. |
double |
getDisplayHeight()
Gets the page's display height. |
double |
getDisplayWidth()
Gets the page's display width. |
double |
getDisplayX()
Returns the page's left margin. |
double |
getDisplayY()
Returns the page's top margin. |
BufferedImage |
getImage(int width,
int height,
boolean keepAspect)
Returns a buffered image showing the contents of this page. |
Rectangle2D |
getMediaBox()
Returns this page's Media Box. |
int |
getPageIndex()
This method returns the index of this page in its parent document. |
int |
getPageRotation()
Returns the rotation of this page in degrees. |
String |
getTabbingOrder()
Returns the tabbing order as defined in the page description, if present. |
TextSelection |
getTextSelection(Rectangle2D selectRect)
Returns a TextSelection object containing information about any text located in an area. |
Rectangle2D |
getTrimBox()
Return this page's Trim Box. |
void |
paintPage(Graphics2D g2d)
Paints this page to the given graphics object. |
void |
printPage(Graphics2D g2d,
PageFormat pf,
PrintSettings printSettings)
Prints this page given a page format describing the printer's page and a PrintSettings object. |
| Method Detail |
public Rectangle2D getMediaBox()
public Rectangle2D getCropBox()
public Rectangle2D getBleedBox()
public Rectangle2D getTrimBox()
public Rectangle2D getArtBox()
public void paintPage(Graphics2D g2d)
g2d - Graphics objects to paint the page to.
PDFException - Any errors encountered during painting the page.
public void printPage(Graphics2D g2d,
PageFormat pf,
PrintSettings printSettings)
g2d - Printer graphics object.pf - PageFormat object to use when printing.printSettings - Printing preferences.public double getDisplayHeight()
public double getDisplayWidth()
public double getDisplayX()
public double getDisplayY()
public int getPageRotation()
public int getPageIndex()
public Vector getAnnotations()
throws PDFException
PDFException
public BufferedImage getImage(int width,
int height,
boolean keepAspect)
width - Width of the desired image.height - Height of the desired image.keepAspect - Flag to indicate whether the resized image should keep its aspect ratio.
public Vector findTextWithContext(String searchText,
boolean caseSensitive,
boolean wholeWords)
throws PDFException
searchText - The text to search for.caseSensitive - Flag to determine if the search should be case sensitive.wholeWords - Flag to indicate if only whole words should be found
PDFException
public Vector findText(String searchText,
boolean caseSensitive,
boolean wholeWords)
throws PDFException
searchText - The text to search for.caseSensitive - Flag to determine if the search should be case sensitive.wholeWords - Flag to indicate if only whole words should be found
PDFExceptionpublic String getTabbingOrder()
public TextSelection getTextSelection(Rectangle2D selectRect)
throws PDFException
PDFException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||