Public Member Functions | |
PDFPage () | |
PDFPage (Rectangle mediabox) | |
PDFPage (int rotate) | |
PDFPage (Rectangle mediabox, int rotate) | |
void | addToProcset (String proc) |
PDFGraphics | getGraphics () |
PDFFont | getFont (String type, String font, int style) |
void | setMedia (Rectangle mediabox) |
Rectangle | getMedia () |
Dimension | getDimension () |
void | setOrientation (int rotate) |
int | getOrientation () |
void | add (PDFObject ob) |
void | addAnnotation (PDFObject ob) |
PDFAnnot | addNote (String note, int x, int y, int w, int h) |
PDFAnnot | addLink (int x, int y, int w, int h, PDFObject dest) |
PDFAnnot | addLink (int x, int y, int w, int h, PDFObject dest, int vx, int vy, int vw, int vh) |
void | addXObject (String inxobject) |
void | addResource (String resource) |
void | addImageResource (String resource) |
void | setThumbnail (PDFObject thumbnail) |
PDFOutline | addOutline (String title) |
PDFOutline | addOutline (String title, int x, int y, int w, int h) |
void | write (OutputStream os) throws IOException |
int | cy (int x, int y) |
int | cx (int x, int y) |
int[] | cxy (int x, int y) |
Static Public Attributes | |
final int | PORTRAIT = 0 |
final int | LANDSCAPE = 90 |
final int | INVERTEDPORTRAIT = 180 |
final int | SEASCAPE = 270 |
final Rectangle | MEDIA_letter = new Rectangle(0,0,612,792) |
final Rectangle | MEDIA_note = new Rectangle(0,0,540,720) |
final Rectangle | MEDIA_legal = new Rectangle(0,0,612,1008) |
final Rectangle | MEDIA_a0 = new Rectangle(0,0,2380,3368) |
final Rectangle | MEDIA_a1 = new Rectangle(0,0,1684,2380) |
final Rectangle | MEDIA_a2 = new Rectangle(0,0,1190,1684) |
final Rectangle | MEDIA_a3 = new Rectangle(0,0,842,1190) |
final Rectangle | MEDIA_a4 = new Rectangle(0,0,595,842) |
final Rectangle | MEDIA_a5 = new Rectangle(0,0,421,595) |
final Rectangle | MEDIA_a6 = new Rectangle(0,0,297,421) |
final Rectangle | MEDIA_a7 = new Rectangle(0,0,210,297) |
final Rectangle | MEDIA_a8 = new Rectangle(0,0,148,210) |
final Rectangle | MEDIA_a9 = new Rectangle(0,0,105,148) |
final Rectangle | MEDIA_a10 = new Rectangle(0,0,74,105) |
final Rectangle | MEDIA_b0 = new Rectangle(0,0,2836,4008) |
final Rectangle | MEDIA_b1 = new Rectangle(0,0,2004,2836) |
final Rectangle | MEDIA_b2 = new Rectangle(0,0,1418,2004) |
final Rectangle | MEDIA_b3 = new Rectangle(0,0,1002,1418) |
final Rectangle | MEDIA_b4 = new Rectangle(0,0,709,1002) |
final Rectangle | MEDIA_b5 = new Rectangle(0,0,501,709) |
final Rectangle | MEDIA_archE = new Rectangle(0,0,2592,3456) |
final Rectangle | MEDIA_archD = new Rectangle(0,0,1728,2592) |
final Rectangle | MEDIA_archC = new Rectangle(0,0,1296,1728) |
final Rectangle | MEDIA_archB = new Rectangle(0,0,864,1296) |
final Rectangle | MEDIA_archA = new Rectangle(0,0,648,864) |
final Rectangle | MEDIA_flsa = new Rectangle(0,0,612,936) |
final Rectangle | MEDIA_flse = new Rectangle(0,0,612,936) |
final Rectangle | MEDIA_halfletter = new Rectangle(0,0,396,612) |
final Rectangle | MEDIA_11x17 = new Rectangle(0,0,792,1224) |
final Rectangle | MEDIA_ledger = new Rectangle(0,0,1224,792) |
Protected Attributes | |
Rectangle | mediabox |
PDFObject | pdfPageList |
Vector | contents |
int | rotate |
PDFObject | thumbnail |
Vector | annotations |
Vector | resources |
Vector | imageResources |
Vector | fonts |
boolean | hasImageB |
boolean | hasImageC |
boolean | hasImageI |
procset | procset |
Eric Z. Beard, ericzbeard@hotmail.com
|
This constructs a Page object, which will hold any contents for this page. Once created, it is added to the document via the PDF.add() method. (For Advanced use, via the PDFPages.add() method). This defaults to a4 media. |
|
Constructs a page, using the supplied media size.
|
|
Constructs a page using A4 media, but using the supplied orientation.
|
|
Constructs a page using the supplied media size and orientation.
|
|
This adds an object that describes some content to this page. Note: Objects that describe contents must be added using this method _AFTER_ the PDF.add() method has been called.
|
|
This adds an Annotation to the page. As with other objects, the annotation must be added to the pdf document using PDF.add() before adding to the page.
|
|
Adds a hyperlink to the document.
|
|
Adds a hyperlink to the document.
|
|
This method adds a text note to the document.
|
|
This method attaches an outline to the current page being generated. When selected, the outline displays the top of the page. Note: If the outline is not in the top level (ie below another outline) then it must not be passed to this method.
|
|
This method attaches an outline to the current page being generated. When selected, the outline displays the top of the page.
|
|
This adds a resource to the page.
|
|
This adds an XObject resource to the page. The string should be of the format /Name ObjectNumber RevisionNumber R as in /Image1 13 0 R . |
|
This utility method converts the y coordinate from Java to User space within the page.
|
|
This utility method converts the Java coordinates to User space within the page.
|
|
This utility method converts the y coordinate from Java to User space within the page.
|
|
Returns a PDFFont, creating it if not yet used.
|
|
This returns a PDFGraphics object, which can then be used to render on to this page. If a previous PDFGraphics object was used, this object is appended to the page, and will be drawn over the top of any previous objects. |
|
Returns the page's media.
|
|
Returns the pages orientation
|
|
Sets the media size for this page. Normally, this should be done when the page is created, to avoid problems.
|
|
Sets the page's orientation. Normally, this should be done when the page is created, to avoid problems.
|
|
This adds an object that describes a thumbnail for this page. Note: The object must already exist in the PDF, as only the object ID is stored.
|
|
Implements gnu::jpdf::PDFObject. |
|
This holds any Annotations contained within this page. |
|
This holds the contents of the page. |
|
The fonts associated with this page |
|
These handle the procset for this page. Refer to page 140 of the PDF Reference manual NB: Text is handled when the fonts Vector is null, and a font is created refer to getFont() to see where it's defined |
|
These handle the procset for this page. Refer to page 140 of the PDF Reference manual NB: Text is handled when the fonts Vector is null, and a font is created refer to getFont() to see where it's defined |
|
These handle the procset for this page. Refer to page 140 of the PDF Reference manual NB: Text is handled when the fonts Vector is null, and a font is created refer to getFont() to see where it's defined |
|
Specifies that the page is in INVERTEDPORTRAIT orientation. |
|
Specifies that the page is in LANDSCAPE orientation. |
|
Rectangle defining a page in 11x17 format. |
|
Rectangle defining a page in a0 format. |
|
Rectangle defining a page in a1 format. |
|
Rectangle defining a page in a10 format. |
|
Rectangle defining a page in a2 format. |
|
Rectangle defining a page in a3 format. |
|
Rectangle defining a page in a4 format. |
|
Rectangle defining a page in a5 format. |
|
Rectangle defining a page in a6 format. |
|
Rectangle defining a page in a7 format. |
|
Rectangle defining a page in a8 format. |
|
Rectangle defining a page in a9 format. |
|
Rectangle defining a page in archA format. |
|
Rectangle defining a page in archB format. |
|
Rectangle defining a page in archC format. |
|
Rectangle defining a page in archD format. |
|
Rectangle defining a page in archE format. |
|
Rectangle defining a page in b0 format. |
|
Rectangle defining a page in b1 format. |
|
Rectangle defining a page in b2 format. |
|
Rectangle defining a page in b3 format. |
|
Rectangle defining a page in b4 format. |
|
Rectangle defining a page in b5 format. |
|
Rectangle defining a page in flsa format. |
|
Rectangle defining a page in flse format. |
|
Rectangle defining a page in halfletter format. |
|
Rectangle defining a page in ledger format. |
|
Rectangle defining a page in legal format. |
|
Rectangle defining a page in letter format. |
|
Rectangle defining a page in note format. |
|
This is this pages media box, ie the size of the page |
|
This is the pages object id that this page belongs to. It is set by the pages object when it is added to it. |
|
Specifies that the page is in PORTRAIT orientation. |
|
This holds any resources for this page |
|
Specifies the number of degrees the page should be rotated clockwise when it is displayed. This value must be zero (the default), or a multiple of 90.
|
|
Specifies that the page is in SEASCAPE orientation. |
|
Object ID that contains a thumbnail sketch of the page. -1 indicates no thumbnail. |