Package com.aowagie.text.pdf
Class PdfPage
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfDictionary
com.aowagie.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)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PdfName[]
private static final String[]
private final PdfRectangle
value of the MediaBox keyFields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGE
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
Constructor Summary
ConstructorsConstructorDescriptionPdfPage
(PdfRectangle mediaBox, HashMap boxSize, PdfDictionary resources, int rotate) Constructs aPdfPage
. -
Method Summary
Modifier and TypeMethodDescription(package private) void
add
(PdfIndirectReference contents) Adds an indirect reference pointing to aPdfContents
-object.boolean
isParent()
Checks if this page element is a tree of pages.Methods inherited from class com.aowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size, toPdf, toString
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
Field Details
-
boxStrings
-
boxNames
-
mediaBox
value of the MediaBox key
-
-
Constructor Details
-
PdfPage
PdfPage(PdfRectangle mediaBox, HashMap boxSize, PdfDictionary resources, int rotate) Constructs aPdfPage
.- Parameters:
mediaBox
- a value for the MediaBox keyresources
- an indirect reference to aPdfResources
-objectrotate
- a value for the Rotate key
-
-
Method Details
-
isParent
public boolean isParent()Checks if this page element is a tree of pages.This method always returns
false
.- Returns:
false
because this is a single page
-
add
Adds an indirect reference pointing to aPdfContents
-object.- Parameters:
contents
- an indirect reference to aPdfContents
-object
-