Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfPage [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfDictionary
         com.lowagie.text.pdf.PdfPage
PdfPage is the PDF Page-object.

A Page object is a dictionary whose keys describe a single page containing text, graphics, and images. A Page object is a leaf of the Pages tree.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 6.4 (page 73-81)

Field Summary
public static final  PdfNumber PORTRAIT    value of the Rotate key for a page in PORTRAIT 
public static final  PdfNumber LANDSCAPE    value of the Rotate key for a page in LANDSCAPE 
public static final  PdfNumber INVERTEDPORTRAIT    value of the Rotate key for a page in INVERTEDPORTRAIT 
public static final  PdfNumber SEASCAPE    value of the Rotate key for a page in SEASCAPE 
 PdfRectangle mediaBox    value of the MediaBox key 
Fields inherited from com.lowagie.text.pdf.PdfDictionary:
FONT,  OUTLINES,  PAGE,  PAGES,  CATALOG,  hashMap
Fields inherited from com.lowagie.text.pdf.PdfObject:
BOOLEAN,  NUMBER,  STRING,  NAME,  ARRAY,  DICTIONARY,  STREAM,  NULL,  INDIRECT,  NOTHING,  TEXT_PDFDOCENCODING,  TEXT_UNICODE,  bytes,  type,  indRef
Constructor:
 PdfPage(PdfRectangle mediaBox,
    HashMap boxSize,
    PdfDictionary resources) 
    Constructs a PdfPage.
    Parameters:
    mediaBox - a value for the MediaBox key
    resources - an indirect reference to a PdfResources-object
 PdfPage(PdfRectangle mediaBox,
    HashMap boxSize,
    PdfDictionary resources,
    int rotate) 
    Constructs a PdfPage.
    Parameters:
    mediaBox - a value for the MediaBox key
    resources - an indirect reference to a PdfResources-object
    rotate - a value for the Rotate key
Method from com.lowagie.text.pdf.PdfPage Summary:
add,   getMediaBox,   isParent,   rotateMediaBox
Methods from com.lowagie.text.pdf.PdfDictionary:
contains,   get,   getAsArray,   getAsBoolean,   getAsDict,   getAsIndirectObject,   getAsName,   getAsNumber,   getAsStream,   getAsString,   getDirectObject,   getKeys,   isCatalog,   isFont,   isOutlineTree,   isPage,   isPages,   merge,   mergeDifferent,   put,   putAll,   putEx,   remove,   size,   toPdf,   toString
Methods from com.lowagie.text.pdf.PdfObject:
canBeInObjStm,   getBytes,   getIndRef,   isArray,   isBoolean,   isDictionary,   isIndirect,   isName,   isNull,   isNumber,   isStream,   isString,   length,   setContent,   setIndRef,   toPdf,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfPage Detail:
  void add(PdfIndirectReference contents) 
    Adds an indirect reference pointing to a PdfContents-object.
 PdfRectangle getMediaBox() 
    Returns the MediaBox of this Page.
 public boolean isParent() 
    Checks if this page element is a tree of pages.

    This method always returns false.

 PdfRectangle rotateMediaBox() 
    Rotates the mediabox, but not the text in it.