|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.teamdev.jxdocument.Page
public class Page
Represents a page inside PDF document. When you don't need Page instance anymore make sure
that you close it using close() method, otherwise you can see memory leak.
| Method Summary | |
|---|---|
void |
close()
Closes the current page and releases all its resources and allocated memory. |
java.awt.Image |
convertToImage(int imageWidth,
int imageHeight)
Renders page into an image with specified width and height in pixels. |
java.awt.Dimension |
getSize()
Returns page size in pixels. |
Text |
getText()
Returns text representation of the page. |
boolean |
isClosed()
Returns true when the current page was closed via close() method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.awt.Dimension getSize()
java.lang.IllegalStateException - when page is closed.public Text getText()
java.lang.IllegalStateException - when error occurs during page load; when page is closed.
public java.awt.Image convertToImage(int imageWidth,
int imageHeight)
getSize() method.
On Retina displays this method returns an image which is twice bigger than passed width
and height parameters.
imageWidth - required image width in pixels.imageHeight - required image height in pixels.
java.lang.IllegalStateException - when page is closed.public boolean isClosed()
true when the current page was closed via close() method.
true when the current page was closed via close() method.public void close()
isClosed() method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||