Class PdfPage
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfPage
Deprecated.
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)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PdfName[]Deprecated.private static final String[]Deprecated.static final PdfNumberDeprecated.value of the Rotate key for a page in INVERTEDPORTRAITstatic final PdfNumberDeprecated.value of the Rotate key for a page in LANDSCAPE(package private) PdfRectangleDeprecated.value of the MediaBox keystatic final PdfNumberDeprecated.value of the Rotate key for a page in PORTRAITstatic final PdfNumberDeprecated.value of the Rotate key for a page in SEASCAPE -
Constructor Summary
ConstructorsConstructorDescriptionPdfPage(PdfRectangle mediaBox, HashMap<String, ? extends PdfObject> boxSize, PdfDictionary resources) Deprecated.Constructs aPdfPage.PdfPage(PdfRectangle mediaBox, HashMap<String, ? extends PdfObject> boxSize, PdfDictionary resources, int rotate) Deprecated.Constructs aPdfPage. -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(PdfIndirectReference contents) Deprecated.Adds an indirect reference pointing to aPdfContents-object.(package private) PdfRectangleDeprecated.Returns the MediaBox of this Page.booleanisParent()Deprecated.Checks if this page element is a tree of pages.(package private) PdfRectangleDeprecated.Rotates the mediabox, but not the text in it.Methods inherited from class PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
PORTRAIT
-
LANDSCAPE
-
INVERTEDPORTRAIT
Deprecated.value of the Rotate key for a page in INVERTEDPORTRAIT -
SEASCAPE
-
boxStrings
Deprecated. -
boxNames
Deprecated. -
mediaBox
-
-
Constructor Details
-
PdfPage
PdfPage(PdfRectangle mediaBox, HashMap<String, ? extends PdfObject> boxSize, PdfDictionary resources, int rotate) Deprecated.Constructs aPdfPage.- Parameters:
mediaBox- a value for the MediaBox keyresources- an indirect reference to aPdfResources-objectrotate- a value for the Rotate key
-
PdfPage
PdfPage(PdfRectangle mediaBox, HashMap<String, ? extends PdfObject> boxSize, PdfDictionary resources) Deprecated.Constructs aPdfPage.- Parameters:
mediaBox- a value for the MediaBox keyresources- an indirect reference to aPdfResources-object
-
-
Method Details
-
isParent
public boolean isParent()Deprecated.Checks if this page element is a tree of pages.This method always returns
false.- Returns:
falsebecause this is a single page
-
add
Deprecated.Adds an indirect reference pointing to aPdfContents-object.- Parameters:
contents- an indirect reference to aPdfContents-object
-
rotateMediaBox
PdfRectangle rotateMediaBox()Deprecated.Rotates the mediabox, but not the text in it.- Returns:
- a
PdfRectangle
-
getMediaBox
-