Package com.reportmill.pdf
Class PDFPage
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.pdf.PDFPage
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
All drawing happens in PDFPage object. Contents is a stream to which all the marking functions get appended.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(PDFAnnotation annot) Adds an annotation to the page.addColorspace
(Object cspace) Adds a new colorspace to the resource dict and returns the name by which it's referredvoid
addExtGState
(String aName, Map aMap) Adds a named graphics state parameter dict to the ExtGState dict for this page.addPattern
(Object pattern) Adds a new pattern to the resource dict and returns the name by which it's referredvoid
Caches compressed contents into _stream and releases contents for efficiency.getAnnotation
(int anIndex) Returns the specific page annotation at the given index.Returns the page contents buffer.Returns the ExtGState dict for this page.getResourceMap
(String resourceName) Returns the named resource dict for this page.void
Resolves page references for page annotations.void
setCropBox
(RMRect aRect) Sets the crop box for the page.void
setMediaBox
(RMRect aRect) Sets the media box for the page.void
Writes the page contents to the pdf buffer.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
PDFPage
Creates a PDF page for the page tree and pfile.
-
-
Method Details
-
getContents
Returns the page contents buffer. -
setMediaBox
Sets the media box for the page. -
setCropBox
Sets the crop box for the page. -
getAnnotation
Returns the specific page annotation at the given index. -
addAnnotation
Adds an annotation to the page. -
getResourceMap
Returns the named resource dict for this page. -
getExtGStateMap
Returns the ExtGState dict for this page. -
addExtGState
Adds a named graphics state parameter dict to the ExtGState dict for this page. -
addColorspace
Adds a new colorspace to the resource dict and returns the name by which it's referred -
addPattern
Adds a new pattern to the resource dict and returns the name by which it's referred -
resolvePageReferences
Resolves page references for page annotations. -
closeContents
public void closeContents()Caches compressed contents into _stream and releases contents for efficiency. -
writePDF
Writes the page contents to the pdf buffer.
-