public class PDFPage extends RMObject
Constructor and Description |
---|
PDFPage(PDFFile pFile)
Creates a PDF page for the page tree and pfile.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(PDFAnnotation annot)
Adds an annotation to the page.
|
java.lang.String |
addColorspace(java.lang.Object cspace)
Adds a new colorspace to the resource dict and returns the name by which it's referred
|
void |
addExtGState(java.lang.String aName,
java.util.Map aMap)
Adds a named graphics state parameter dict to the ExtGState dict for this page.
|
java.lang.String |
addPattern(java.lang.Object pattern)
Adds a new pattern to the resource dict and returns the name by which it's referred
|
void |
closeContents()
Caches compressed contents into _stream and releases contents for efficiency.
|
PDFAnnotation |
getAnnotation(int anIndex)
Returns the specific page annotation at the given index.
|
PDFPageBuffer |
getContents()
Returns the page contents buffer.
|
java.util.Map |
getExtGStateMap()
Returns the ExtGState dict for this page.
|
java.util.Map |
getResourceMap(java.lang.String resourceName)
Returns the named resource dict for this page.
|
void |
resolvePageReferences(PDFPagesTree pages)
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 |
writePDF(PDFFile pdfFile)
Writes the page contents to the pdf buffer.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public PDFPage(PDFFile pFile)
public PDFPageBuffer getContents()
public void setMediaBox(RMRect aRect)
public void setCropBox(RMRect aRect)
public PDFAnnotation getAnnotation(int anIndex)
public void addAnnotation(PDFAnnotation annot)
public java.util.Map getResourceMap(java.lang.String resourceName)
public java.util.Map getExtGStateMap()
public void addExtGState(java.lang.String aName, java.util.Map aMap)
public java.lang.String addColorspace(java.lang.Object cspace)
public java.lang.String addPattern(java.lang.Object pattern)
public void resolvePageReferences(PDFPagesTree pages)
public void closeContents()
public void writePDF(PDFFile pdfFile)