Gnostice PDFOne Java
Std. Ed. v2.10


com.gnostice.pdfone
Class PdfPage

java.lang.Object
  extended by com.gnostice.pdfone.PdfPage
All Implemented Interfaces:
Usable, Cloneable

public final class PdfPage
extends Object

This class represents a PDF page. PdfPage offers numerous methods to work with elements such as text, shapes, images, annotations, and bookmarks.

After content is written to a page, it is usually added to a PdfDocument object using the PdfDocument.add(PdfPage) method. A PdfPage object can be cloned using the clone() method and then added to a PdfDocument one more time. However, the same PdfPage object can be added to multiple PdfDocument object without cloning.

  // Creates several PdfDocument objects
  PdfDocument doc1 = ...
  PdfDocument doc2 = ...
  PdfDocument doc1 = ...
  ...
  PdfDocument docn = ...
  
  // Creates a PdfPage object
  PdfPage page = new PdfPage();
  
  // Performs operations with the above PdfPage object
  ...
  
  // Adds the same PdfPage object to the PdfDocument objects 
  // created above
   doc1.add(page); 
   doc2.add(page); 
   doc3.add(page); 
   ...  
   docn.add(page);  
  
  ...

While writing to a page, the position where the content should appear is very important. The coordinates of the position is always made in reference to the top-left corner the page. Whenever coordinates, position, or sizes are used, they are usually applied in terms of the page's current measurement unit, which can be centimeters, inches, pixels, points, and twips. However, in situations where a measurement unit cannot be applied or determined, the measurement unit will be by default points.

Every page has a default pen setting and a default brush setting. The pen for example is used to stroke the borders when a rectangle is drawn. In the same example, the brush would be used when the area bounded by the rectangle is filled.

Since:
1.0

Field Summary
static int COLORSPACE_CMYK
           
static int COLORSPACE_RGB
           
static int HP_LEFT
          Constant to specify horizontal alignment to the left (inside header, footer and watermarks)
static int HP_MIDDLE
          Constant to specify horizontal alignment to the middle (inside header, footer and watermarks)
static int HP_RIGHT
          Constant to specify horizontal alignment to the right (inside header, footer and watermarks)
static boolean OVERLAY
          Constant to specify z-order overlay
static boolean UNDERLAY
          Constant to specify z-order underlay
static int VP_BOTTOM
          Constant to specify vertical alignment to the bottom (inside header, footer and watermarks)
static int VP_CENTRE
          Constant to specify vertical alignment to the center (inside header, footer and watermarks)
static int VP_TOP
          Constant to specify vertical alignment to the top (inside header, footer and watermarks)
 
Fields inherited from interface com.gnostice.pdfone.Usable
INCHES_TO_POINTS, MM_TO_INCHES, MM_TO_POINTS, PDF_A, PDF_AA, PDF_AC, PDF_ACROFORM, PDF_ACTION, PDF_ALTERNATEPRESENTATIONS, PDF_ANNOT, PDF_ANNOT_DEFAULT_TITLE, PDF_ANNOT_NAME, PDF_ANNOT_SUBJECT, PDF_ANNOTS, PDF_AP, PDF_ARRAYEND, PDF_ARRAYSTART, PDF_ARTBOX, PDF_AS, PDF_ASCENT, PDF_ASCII85, PDF_ASCII85_NEW, PDF_ASCIIHEX, PDF_ASCIIHEX_NEW, PDF_AUTHOR, PDF_AVGWIDTH, PDF_B, PDF_BASEFONT, PDF_BBOX, PDF_BC, PDF_BE, PDF_BEFOREFORMAT, PDF_BEGINTEXT, PDF_BG, PDF_BINARYDATA, PDF_BITS_PER_COMPONENT, PDF_BL, PDF_BLEEDBOX, PDF_BLINDS, PDF_BMC, PDF_BORDER, PDF_BOX, PDF_BS, PDF_BTN, PDF_C, PDF_CA, PDF_CA_SMALL, PDF_CAPHEIGHT, PDF_CARETANNOT, PDF_CARRIAGE, PDF_CATALOG, PDF_CENTER_WINDOW, PDF_CH, PDF_CID_TO_GID_MAP, PDF_CIDFONT_TYPE1, PDF_CIDFONT_TYPE2, PDF_CIDSYSTEM_INFO, PDF_CIRCLEANNOT, PDF_CL, PDF_CM, PDF_COLOMNS, PDF_COLOR, PDF_COLORSPACE, PDF_CONTENTS, PDF_COUNT, PDF_COVER, PDF_CREATIONDATE, PDF_CREATOR, PDF_CROPBOX, PDF_CS, PDF_CSP, PDF_D, PDF_DA, PDF_DATE, PDF_DATE_FORMAT, PDF_DCTDECODE, PDF_DCTDECODE_NEW, PDF_DECODEPARMS, PDF_DESC, PDF_DESCENDANT, PDF_DESCENDANT_FONTS, PDF_DESCENDENTFONTS, PDF_DESCENT, PDF_DESTINATION, PDF_DESTS, PDF_DEVICE_CMYK, PDF_DEVICE_GRAY, PDF_DEVICE_RGB, PDF_DI, PDF_DICTEND, PDF_DICTSTART, PDF_DIFFERENCES, PDF_DIRECTION, PDF_DISPLAY_DOCTITLE, PDF_DISPLAY_DURATION, PDF_DISSOLVE, PDF_DM, PDF_DOC_SUBJECT, PDF_DOS, PDF_DP, PDF_DR, PDF_DS, PDF_DV, PDF_DW, PDF_E, PDF_EF, PDF_EMBEDDEDFILE, PDF_EMBEDDEDFILES, PDF_EMC, PDF_ENCODING, PDF_ENCRYPT, PDF_ENDOBJ, PDF_ENDPATH, PDF_ENDSTREAM, PDF_ENDTEXT, PDF_EOCLIP, PDF_EOF, PDF_EXTGSTATE, PDF_F, PDF_FADE, PDF_FALSE, PDF_FDESCRIPTOR, PDF_FIELD_FLAG, PDF_FIELDS, PDF_FILEATTACHMENTANNOT, PDF_FILESPEC, PDF_FILTER, PDF_FIRST, PDF_FIRST_PAGE, PDF_FIRSTCHAR, PDF_FIT, PDF_FIT_WINDOW, PDF_FITB, PDF_FITBH, PDF_FITBV, PDF_FITH, PDF_FITR, PDF_FITV, PDF_FIXEDPRINT, PDF_FLAGS, PDF_FLATE, PDF_FLATE_NEW, PDF_FLY, PDF_FO, PDF_FONT, PDF_FONTBBOX, PDF_FONTDESCRIPTOR, PDF_FONTFILE, PDF_FONTFILE_2, PDF_FontFile_3, PDF_FONTFILE2, PDF_FONTNAME, PDF_FONTNAMEPREFIX, PDF_FORM, PDF_FORMFEED, PDF_FORMFONTPREFIX, PDF_FREE_TEXT_TYPEWRITER, PDF_FREETEXTANNOT, PDF_FS, PDF_FT, PDF_FULLSCREEN, PDF_GLITTER, PDF_GOTO_ACTION, PDF_GROUP, PDF_GS, PDF_H, PDF_HEADER, PDF_HEIGHT, PDF_HEXSTRINGEND, PDF_HEXSTRINGSTART, PDF_HIDE_MENUBAR, PDF_HIDE_TOOLBAR, PDF_HIDE_WINDOWUI, PDF_HORIZ_STEM, PDF_HORIZONTAL, PDF_I, PDF_IC, PDF_ID, PDF_IDS, PDF_IF, PDF_IMAGE, PDF_IMAGEB, PDF_IMAGEC, PDF_IMAGEI, PDF_IMPORTDATA, PDF_INDEX, PDF_INDEXED, PDF_INFO, PDF_INK, PDF_INKLIST, PDF_INWARD, PDF_IT, PDF_ITALANGLE, PDF_IX, PDF_JAVASCRIPT, PDF_JAVASCRIPT_ACTION, PDF_JS, PDF_KEYSTROKE, PDF_KEYWORDS, PDF_KIDS, PDF_L, PDF_L2R, PDF_LANG, PDF_LAST, PDF_LAST_PAGE, PDF_LASTCHAR, PDF_LAUNCH_ACTION, PDF_LE, PDF_LEGAL, PDF_LENGTH, PDF_LENGTH_1, PDF_LENGTH_2, PDF_LENGTH_3, PDF_LF, PDF_LINEANNOT, PDF_LINKANNOT, PDF_LITERALSTRINGEND, PDF_LITERALSTRINGSTART, PDF_LZWDECODE, PDF_M, PDF_MAC, PDF_MARKINFO, PDF_MAXLEN, PDF_MAXWIDTH, PDF_MEDIABOX, PDF_METADATA, PDF_MISSINGWIDTH, PDF_MK, PDF_MODDATE, PDF_N, PDF_NAME, PDF_NAMED, PDF_NAMED_ACT_FIND, PDF_NAMED_ACT_OPEN, PDF_NAMED_ACT_PRINT, PDF_NAMED_ACT_SEARCH, PDF_NAMES, PDF_NAMESTART, PDF_NEEDAPPEARANCES, PDF_NEWLINE, PDF_NEWWINDOW, PDF_NEXT, PDF_NEXT_PAGE, PDF_NO_COMP_OBJ, PDF_NONFULLSCREEN_PAGEMODE, PDF_NULL, PDF_O, PDF_OBJ, PDF_OBJSTREAM, PDF_OCPROPERTIES, PDF_OFF, PDF_ONECOLUMN, PDF_OPEN, PDF_OPEN_ACTION, PDF_OPT, PDF_OUTLINES, PDF_OUTPUTINTENTS, PDF_OUTWARD, PDF_P, PDF_PAGE, PDF_PAGECLOSE, PDF_PAGEINVISIBLE, PDF_PAGELABELS, PDF_PAGELAYOUT, PDF_PAGEMODE, PDF_PAGEOPEN, PDF_PAGES, PDF_PAGEVISIBLE, PDF_PAINT_TYPE, PDF_PARAMS, PDF_PARENT, PDF_PATTERN, PDF_PATTERN_TYPE, PDF_PBD, PDF_PC, PDF_PDC, PDF_PDF, PDF_PERMS, PDF_PFD, PDF_PH, PDF_PIECEINFO, PDF_POLYGONANNOT, PDF_POLYLINEANNOT, PDF_POPUP, PDF_PREDICTOR, PDF_PREV, PDF_PREV_PAGE, PDF_PROCSET, PDF_PRODUCER, PDF_PROPERTIES, PDF_PUSH, PDF_PV, PDF_Q, PDF_QUADPOINTS, PDF_R, PDF_R2L, PDF_RC, PDF_RD, PDF_RE, PDF_RECALCULATE, PDF_RECT, PDF_REMOTEGOTO_ACTION, PDF_RENDITIONS, PDF_REPLACE, PDF_RESET_FORM, PDF_RESOURCES, PDF_RESTORE_GS, PDF_RI, PDF_ROOT, PDF_ROTATE, PDF_RUNLENGTH, PDF_RUNLENGTH_NEW, PDF_S, PDF_SCN, PDF_SHADING, PDF_SHOWIMG, PDF_SHOWTEXT, PDF_SINGLE_QUOTES, PDF_SINGLEPAGE, PDF_SIZE, PDF_SP, PDF_SPIDERINFO, PDF_SPLIT, PDF_SQUAREANNOT, PDF_SS, PDF_STAMPANNOT, PDF_STARTXREF, PDF_STORE_GS, PDF_STREAM, PDF_STRUCT_TREE, PDF_SUBMIT_FORM, PDF_SUBTYPE, PDF_T, PDF_TAB, PDF_TEMPLATES, PDF_TEXT, PDF_TEXTANNOT, PDF_TEXTDIMENSION, PDF_TEXTFONT, PDF_TEXTLEAD, PDF_TEXTMATRIX, PDF_TEXTNEWLINESTART, PDF_TEXTRENDER, PDF_TEXTWIDTH, PDF_THREADS, PDF_THUMB, PDF_TILING_TYPE, PDF_TITLE, PDF_TM, PDF_TOUNICODE, PDF_TP, PDF_TRAILER, PDF_TRANSITION, PDF_TRIMBOX, PDF_TRUE, PDF_TRUETYPE, PDF_TU, PDF_TWOCOLUMN_LEFT, PDF_TWOCOLUMN_RIGHT, PDF_TWOPAGE_LEFT, PDF_TWOPAGE_RIGHT, PDF_TX, PDF_TYPE, PDF_TYPE0, PDF_TYPE1, PDF_U, PDF_UNCOVER, PDF_UNIX, PDF_URI_ACTION, PDF_URL, PDF_URLS, PDF_USEATTACHMENTS, PDF_USENONE, PDF_USEOC, PDF_USEOUTLINES, PDF_USETHUMBS, PDF_V, PDF_VALUECHANGE, PDF_VERSION, PDF_VERT_STEM, PDF_VERTICAL, PDF_VERTICES, PDF_VIEWER_PREFERENCES, PDF_W, PDF_WATERMARKANNOT, PDF_WIDGET, PDF_WIDTH, PDF_WIDTHS, PDF_WINANSIENCODING, PDF_WIPE, PDF_X, PDF_XOBJECT, PDF_XREF, PDF_XREFSTMOFFSET, PDF_XREFSTREAM, PDF_XSTEP, PDF_XYZ, PDF_YES, PDF_YSTEP, PIXEL_PER_INCH, RUBICON_EMBEDDED, SITE, TEXT, TWIPS_TO_POINTS
 
Constructor Summary
PdfPage()
          Zero-argument default constructor.
PdfPage(double width, double height)
          Constructs a page with specified width and height.
PdfPage(double width, double height, double pageHeaderHeight, double pageFooterHeight, double pageLeftMargin, double pageTopMargin, double pageRightMargin, double pageBottomMargin, int measurementUnit)
          Constructs a page with its width, height, header height, footer height, and margins specified in measurementUnit units.
PdfPage(double width, double height, double pageLeftMargin, double pageTopMargin, double pageRightMargin, double pageBottomMargin, int measurementUnit)
          Constructs a page with its width, height, and margins specified in measurementUnit units.
PdfPage(double width, double height, int measurementUnit)
          Constructs a page with its width and height specified in measurementUnit units.
PdfPage(int pageSize)
          Constructs a page with specified size.
PdfPage(int pageSize, double pageHeaderHeight, double pageFooterHeight, double pageLeftMargin, double pageTopMargin, double pageRightMargin, double pageBottomMargin, int measurementUnit)
          Constructs a page with its size, header height, footer height, and margins specified in measurementUnit units.
PdfPage(int pageSize, double pageLeftMargin, double pageTopMargin, double pageRightMargin, double pageBottomMargin, int measurementUnit)
          Constructs a page with its size and margins specified in measurementUnit units.
 
Method Summary
 void addAction(int event, int namedAction)
          Adds specified named action for specified trigger event.
 void addAction(int event, int actionType, String javascriptOrURI)
          Adds action of resolving specified Uniform Resource Identifier URI) or executing a JavaScript script for the specified event.
 void addAction(int event, int actionType, String applicationToLaunch, boolean isPrint)
          Adds action of launching specified application, or displaying or printing specified file for the specified event.
 void addAnnotation(PdfAnnot annotation)
          Adds specified annotation to this PdfPage.
 void addAnnotationList(List annotList)
           
 void addAnnotationList(List annotList, boolean removeExistingAnnots)
           
 void addFooterImage(PdfImage img, int position, boolean underlay)
          Adds PdfImage object to footer.
 void addFooterImage(String path, int position, boolean underlay)
          Adds image, specified by its pathname, to footer.
 void addFooterText(String text, PdfFont font, int position, boolean underlay)
          Adds specified text to footer.
 void addFooterText(String text, PdfFont font, PdfRect rect, int alignment, int firstLinePosition, int position, boolean underlay)
          Adds specified text to footer.
 void addFormField(PdfFormField f)
          Adds specified form field to page.
 void addFormFieldList(List formFieldList)
           
 void addHeaderImage(PdfImage img, int position, boolean underlay)
          Adds PdfImage object to the header.
 void addHeaderImage(String path, int position, boolean underlay)
          Adds image, specified by its pathname, to header.
 void addHeaderText(String text, PdfFont font, int position, boolean underlay)
          Adds specified text to header.
 void addHeaderText(String text, PdfFont font, PdfRect rect, int alignment, int firstLinePosition, int position, boolean underlay)
          Adds specified text to footer.
 void addTable(PdfTable table, double x, double y)
           
 void addTable(PdfTable table, PdfFont f, double x, double y)
           
 void addThumbnailImage(String path)
           
 void addWatermarkImage(PdfImage image, int position, boolean applyMargins, double angle, boolean underlay)
          Adds PdfImage object as watermark image with its exact position determined by position and applyMargins.
 void addWatermarkImage(PdfImage image, int position, double angle, boolean underlay)
          Adds PdfImage object as watermark image.
 void addWatermarkImage(String path, int position, boolean applyMargins, double angle, boolean underlay)
          Adds image, specified by its pathname, as watermark image with its exact position determined by position and applyMargins.
 void addWatermarkImage(String path, int position, double angle, boolean underlay)
          Adds image, specified by its pathname, as watermark image.
 void addWatermarkText(String text, PdfFont font, int position, boolean applyMargins, double angle, boolean underlay)
          Adds specified text as watermark with its exact position determined by position and applyMargins.
 void addWatermarkText(String text, PdfFont font, int position, double angle, boolean underlay)
          Adds specified text as watermark.
 void addWatermarkText(String text, PdfFont font, PdfRect rect, int alignment, int firstLinePosition, int position, double angle, boolean underlay)
          Adds specified text as a watermark to a specified rectangular area with specified font, alignment, first-line position, position, rotation, and underlay settings.
 Object clone()
           
 void deleteFormFields()
           
 void deleteFormFields(int type)
           
 void deleteFormFields(String name)
           
 void disableAllMargins()
          Disables all margins on this PdfPage.
 void drawArc(PdfRect rect, double startAngle, double sweepAngle)
          Draws an arc.
 void drawBezierCurve(double startX, double startY, double ctrlX, double ctrlY, double endX, double endY, boolean isFill, boolean isStroke)
          Draws a Bézier curve with a control point specified by (ctrlX, ctrlY).
 void drawBezierCurve(double startX, double startY, double ctrlX1, double ctrlY1, double ctrlX2, double ctrlY2, double endX, double endY, boolean isFill, boolean isStroke)
          Draws a Bézier curve with control points at (ctrlX1, ctrlY1) and (ctrlX2, ctrlY2).
 void drawBezierCurve(PdfPoint start, PdfPoint control, PdfPoint end, boolean isFill, boolean isStroke)
          Draws a Bézier curve with a single control point.
 void drawBezierCurve(PdfPoint start, PdfPoint controlPoint1, PdfPoint controlPoint2, PdfPoint end, boolean isFill, boolean isStroke)
          Draws a Bézier curve with two control points.
 void drawCircle(double x, double y, double radius, boolean isFill, boolean isStroke)
          Draws a circle with its center at position (x, y).
 void drawCircle(PdfPoint center, double radius, boolean isFill, boolean isStroke)
          Draws a circle with its center at the specified point.
 void drawEllipse(double x1, double y1, double x2, double y2, boolean isFill, boolean isStroke)
          Draws an ellipse whose bounding box has its top-left corner at (x1, y1) and its bottom-right corner at (x2, y2).
 void drawEllipse(PdfPoint p1, PdfPoint p2, boolean isFill, boolean isStroke)
          Draws an ellipse whose bounding box has its top-left corner at point1 and its bottom-right corner at point2.
 void drawImage(PdfImage img, double x, double y)
          Draws specified image at position (x, y).
 void drawImage(PdfImage img, double x, double y, double rotation)
          Draws specified image, rotated by rotation degrees, at position (x, y).
 void drawImage(PdfImage img, double x, double y, double width, double height)
          Draws specified image at position (x, y) with specified width and height.
 void drawImage(PdfImage img, double x, double y, double width, double height, double rotation)
          Draw specified image, rotated by rotation degrees, at position (x, y) with specified height and width.
 void drawImage(PdfImage img, PdfPoint p)
          Draws specified image at specified point.
 void drawImage(PdfImage img, PdfPoint p, double rotation)
          Draws specified image, rotated by rotation degrees, at point p.
 void drawImage(PdfImage img, PdfPoint p, double width, double height)
          Draws specified image at point p with specified width and height.
 void drawImage(PdfImage img, PdfPoint p, double width, double height, double rotation)
          Draws specified image, rotated by rotation degrees, at point p with specified width and height.
 void drawImage(PdfImage img, PdfRect rect)
          Draws specified image on specified rectangle.
 void drawImage(PdfImage img, PdfRect rect, double rotation)
          Draws specified image, rotated by rotation degrees, on specified rectangle.
 void drawImage(String path, double x, double y)
          Draws image, specified by its pathname, at position (x, y).
 void drawImage(String path, double x, double y, double rotation)
          Draw image, specified by its pathname and rotated by rotation degrees, at position (x, y).
 void drawImage(String path, double x, double y, double width, double height)
          Draws image, specified by its pathname, at position (x, y) with specified width and height.
 void drawImage(String path, double x, double y, double width, double height, double rotation)
          Draws image, specified by its pathname and rotated by rotation degrees, at position (x, y) with specified width and height.
 void drawImage(String path, PdfPoint p)
          Draws image, specified by its pathname, at point p.
 void drawImage(String path, PdfPoint p, double rotation)
          Draws image, specified by its pathname and rotated by rotation degrees, at point p.
 void drawImage(String path, PdfPoint p, double width, double height)
          Draws image, specified by its pathname, at point p with specified width and height.
 void drawImage(String path, PdfPoint p, double width, double height, double rotation)
          Draws image, specified by its pathname and rotated by rotation degrees, at point p with specified width and height.
 void drawImage(String path, PdfRect rect)
          Draws image, specified by its pathname, on rectangle rect.
 void drawImage(String path, PdfRect rect, double rotation)
          Draws image, specified by its pathname and rotated by rotation degrees, on rectangle rect.
 void drawLine(double startx, double starty, double endx, double endy)
          Draws a line between positions (startx, starty) and (endx, endy).
 void drawLine(PdfPoint start, PdfPoint end)
          Draws a line between points start and end.
 void drawPie(double x, double y, double width, double height, double startAngle, double sweepAngle, boolean isFill, boolean isStroke)
          Draws a pie segment.
 void drawPolygon(double[] xPoints, double[] yPoints, int nPoints, boolean isFill, boolean isStroke)
          Draws a polygon.
 void drawPolyline(double[] xPoints, double[] yPoints, int nPoints)
          Draws a polyline.
 void drawRect(double x, double y, double width, double height)
          Draws a rectangle at position (x, y) with specified width and height.
 void drawRect(double x, double y, double width, double height, boolean isFill, boolean isStroke)
          Draws a rectangle at position (x, y) with specified width, height, brush, and pen settings.
 void drawRect(PdfPoint p, double width, double height)
          Draws a rectangle at specified point with specified width and height.
 void drawRect(PdfPoint p, double width, double height, boolean isFill, boolean isStroke)
          Draws a rectangle at specified point with specified width, height, brush, and pen settings.
 void drawRect(PdfRect r)
          Draws a rectangle.
 void drawRect(Rectangle r)
           
 void drawRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight, boolean isFill, boolean isStroke)
          Draws a rectangle with rounded corners.
 void drawRoundRect(PdfRect rect, double arcWidth, double arcHeight, boolean isFill, boolean isStroke)
          Draws rectangle rect with specified rounded corners.
 void drawSquare(double x, double y, double length)
          Draws a square at position (x, y).
 void drawSquare(double x, double y, double length, boolean isFill, boolean isStroke)
          Draws a square at position (x, y) with specified fill and stroke settings.
 void drawSquare(PdfPoint p, double length)
          Draws a square at point p.
 void drawSquare(PdfPoint p, double length, boolean isFill, boolean isStroke)
          Draws a square at point p with specified fill and stroke settings.
 void enableAllMargins()
          Enables all margins on this PdfPage.
 void flattenFormFields()
           
 void flattenFormFields(boolean flattenWithNewValue)
           
 void flattenFormFields(int type)
           
 void flattenFormFields(int type, boolean flattenWithNewValue)
           
 void flattenFormFields(String name)
           
 void flattenFormFields(String name, boolean flattenWithNewValue)
           
 List getAllAnnotations()
           
 List getAllAnnotations(int type)
           
 void getAllAnnotations(int type, List listToPopulate)
           
 void getAllAnnotations(List listToPopulate)
           
 List getAllFontBaseNames()
           
 List getAllFormFields()
          Returns a list of all form fields in the page.
 List getAllFormFields(int type)
          Returns a list of all form fields of specified type in the page.
 List getAllFormFields(String name)
          Returns a list of all form fields with specified name in the page.
 double getBottomMargin()
          Returns size of this page's bottom margin.
 PdfBrush getBrush()
          Returns default brush used on this page.
 int getColorSpace()
           
 double getCropBottom()
          Returns difference between bottom boundaries of this page's media box and crop box.
 double getCropLeft()
          Returns difference between left boundaries of this page's media box and crop box.
 double getCropRight()
          Returns difference between right boundaries of this page's media box and crop box.
 double getCropTop()
          Returns difference between top boundaries of this page's media box and crop box.
 double getDisplayDuration()
           
 PdfFont getFont()
          Returns default font used to render text elements on this page.
 double getFooterHeight()
          Returns height of this page's footer.
 double getHeaderHeight()
          Returns height of this page's footer.
 double getHeight()
          Returns height of this page.
 double getLeftMargin()
          Returns size of this page's left margin.
 int getMeasurementUnit()
          Returns default measurement unit currently used for this PdfPage.
 PdfPen getPen()
          Returns a PdfPen object representing this page's pen.
 PdfPagePresentation getPresentation()
           
 double getRightMargin()
          Returns size of this page's right margin.
 int getRotation()
          Returns angle of rotation for contents of this page.
 PdfTextFormatter getTextFormatter()
          Retrieves PdfTextFormatter object contained by this PdfPage.
 double getTopMargin()
          Returns the size of this page's top margin.
 double getWidth()
          Returns width of this page.
 void removeThumbnailImage()
           
 void setBrush(PdfBrush brush)
           
 void setBrushColor(Color c)
          Specifies default color for this page's brush.
 void setColorSpace(int colorspace)
           
 void setCph(PdfCustomPlaceholderHandler cph)
           
 void setDisplayDuration(double displayDuration)
           
 void setFont(PdfFont font)
          Specifies a default font that needs to be used render text elements on this page.
 void setHeight(double height, int unit)
           
 void setMeasurementUnit(int mu)
          Specifies default measurement unit to be used for this PdfPage.
 void setPen(PdfPen pen)
          Sets specified PdfPen object as this page's pen.
 void setPenCapStyle(int capStyle)
          Specifies default shape of endpoints of paths in this page.
 void setPenColor(Color color)
          Specifies default color for this page's pen.
 void setPenDashGap(double gap)
          Specifies length of gaps in default dash pattern of this page's pen.
 void setPenDashLength(double length)
          Specifies length of dashes in default dash pattern of this PdfDocument's pen.
 void setPenDashPhase(double phase)
          Specifies length of phase of default dash pattern of this page's pen.
 void setPenJoinStyle(int joinStyle)
          Specifies default shape of joints of paths that connect at an angle for this pages's pen.
 void setPenMiterLimit(int limit)
          Specifies default miter limit for this page's pen.
 void setPenWidth(double width)
          Specifies default width for this page's pen.
 void setPresentation(PdfPagePresentation presentation)
           
 void setTextFormatter(PdfTextFormatter tf)
          Specifies new text formatting settings.
 void setWidth(double width, int unit)
           
 void writeText(String str)
          Writes specified text on this PdfPage.
 void writeText(String str, boolean wrap)
          Writes text str with specified wrap setting on this PdfPage.
 void writeText(String str, double x, double y)
          Writes text str at position (x, y).
 void writeText(String str, double x, double y, boolean wrap)
          Writes text str at position (x, y) with specified wrap setting.
 void writeText(String str, double x, double y, double rotation)
          Writes text str, rotated by rotation degrees, at position (x, y).
 void writeText(String str, double x, double y, int alignment)
          Writes text str at position (x,