public class Page extends PDFObject
PDFDocument
. Our objective is to be able
to write to the page using the PDFGraphics2D
class (see the
getGraphics2D()
method).Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Returns a new rectangle containing the bounds for this page (as supplied
to the constructor).
|
PDFObject |
getContents()
Returns the
PDFObject that represents the page content. |
PDFGraphics2D |
getGraphics2D()
Returns the
PDFGraphics2D instance for drawing to the page. |
byte[] |
getObjectBytes()
Returns the bytes that go between the 'obj' and 'endobj' in the
PDF output for this object.
|
getGeneration, getNumber, getReference, toPDFBytes
public java.awt.geom.Rectangle2D getBounds()
public PDFObject getContents()
PDFObject
that represents the page content.PDFObject
that represents the page content.public PDFGraphics2D getGraphics2D()
PDFGraphics2D
instance for drawing to the page.PDFGraphics2D
instance for drawing to the page.public byte[] getObjectBytes()
PDFObject
getObjectBytes
in class PDFObject