com.mindfusion.pdf
Class PdfPage
java.lang.Object
com.mindfusion.pdf.PdfObject
com.mindfusion.pdf.PdfPage
- All Implemented Interfaces:
- INotify<PdfObject>, IPdfSaver, java.lang.Comparable
public class PdfPage
- extends PdfObject
Methods inherited from class com.mindfusion.pdf.PdfObject |
compare, compareTo, getCollectionId, getCurrentRotation, getCurrentTransform, getId, getName, getObjectFooter, getObjectHeader, getOffset, getPage, getParent, getPdfType, getSize, isParentless, isRoot, OnAdded, OnChanged, registerObject, setCollectionId, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
objectsLock
public final java.lang.Object objectsLock
PdfPage
public PdfPage(PdfDocument _doc)
throws java.lang.IllegalArgumentException,
UnsupportedDataTypeException,
java.io.IOException
- Throws:
java.lang.IllegalArgumentException
UnsupportedDataTypeException
java.io.IOException
PdfPage
public PdfPage(PdfDocument _doc,
java.awt.geom.Rectangle2D _rect)
throws java.lang.IllegalArgumentException,
UnsupportedDataTypeException,
java.io.IOException
- Throws:
java.lang.IllegalArgumentException
UnsupportedDataTypeException
java.io.IOException
AddObject
public void AddObject(PdfObject o)
getContent
protected byte[] getContent()
throws java.io.IOException
- Overrides:
getContent
in class PdfObject
- Throws:
java.io.IOException
Save
public void Save(PdfWriter writer)
throws java.io.IOException
- Specified by:
Save
in interface IPdfSaver
- Overrides:
Save
in class PdfObject
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(int type)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
toString
public java.lang.String toString(int type,
java.lang.String pattern,
java.lang.String element)
Font
public PdfFont Font(java.awt.Font font)
newFont
public PdfFont newFont(java.awt.Font font)
newFont
public PdfFont newFont(java.awt.Font font,
java.lang.String name)
Image
public PdfImage Image(java.awt.Image img,
java.awt.Dimension dim)
Image
public PdfImage Image(java.awt.Image img)
newImage
public PdfImage newImage(java.awt.Image img,
java.awt.Dimension dim)
getPageObjects
public NotifyableList<PdfObject> getPageObjects()
getPageObjectsC
public NotifyableList<PdfObject> getPageObjectsC()
getClipStr
public java.lang.String getClipStr()
getDocument
public PdfDocument getDocument()
- Description copied from class:
PdfObject
- private PdfDocument document = null;
public PdfDocument getDocument() {
return isRoot() ? document : page.getDocument();
}
- Overrides:
getDocument
in class PdfObject
setDocument
public void setDocument(PdfDocument document)
getLayoutRect
public java.awt.geom.Rectangle2D getLayoutRect()
getCropRect
public java.awt.geom.Rectangle2D getCropRect()
getPageTransform
public java.awt.geom.AffineTransform getPageTransform()