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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAnnotation(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 referredvoidaddExtGState(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 referredvoidCaches 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.voidResolves page references for page annotations.voidsetCropBox(RMRect aRect) Sets the crop box for the page.voidsetMediaBox(RMRect aRect) Sets the media box for the page.voidWrites the page contents to the pdf buffer.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
PDFPageCreates a PDF page for the page tree and pfile.
 
- 
- 
Method Details- 
getContentsReturns the page contents buffer.
- 
setMediaBoxSets the media box for the page.
- 
setCropBoxSets the crop box for the page.
- 
getAnnotationReturns the specific page annotation at the given index.
- 
addAnnotationAdds an annotation to the page.
- 
getResourceMapReturns the named resource dict for this page.
- 
getExtGStateMapReturns the ExtGState dict for this page.
- 
addExtGStateAdds a named graphics state parameter dict to the ExtGState dict for this page.
- 
addColorspaceAdds a new colorspace to the resource dict and returns the name by which it's referred
- 
addPatternAdds a new pattern to the resource dict and returns the name by which it's referred
- 
resolvePageReferencesResolves page references for page annotations.
- 
closeContentspublic void closeContents()Caches compressed contents into _stream and releases contents for efficiency.
- 
writePDFWrites the page contents to the pdf buffer.
 
-