|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.pdf.graphics.PdfGraphicsWidget
com.spire.pdf.graphics.PdfLayoutWidget
com.spire.pdf.graphics.PdfShapeWidget
com.spire.pdf.graphics.PdfTemplate
public class PdfTemplate
Represents Pdf Template object.
Field Summary |
---|
Fields inherited from class com.spire.pdf.graphics.PdfLayoutWidget |
---|
beginPageLayout |
Constructor Summary | |
---|---|
PdfTemplate(java.awt.geom.Dimension2D size)
Initializes a new instance of the class. |
|
PdfTemplate(java.awt.geom.Dimension2D size,
boolean writeTransformation)
|
|
PdfTemplate(double width,
double height)
Initializes a new instance of the class. |
|
PdfTemplate(float width,
float height)
Initializes a new instance of the class. |
|
PdfTemplate(float width,
float height,
boolean isPdfAppearance)
Initializes a new instance of the class. |
|
PdfTemplate(PdfAnnotation annotation)
|
|
PdfTemplate(java.awt.geom.Rectangle2D cropBox)
|
|
PdfTemplate(java.awt.geom.Rectangle2D cropBox,
java.awt.geom.Rectangle2D mediaBox)
Initializes a new instance of the class. |
Method Summary | |
---|---|
PdfCanvas |
getGraphics()
Gets graphics context of the template. |
float |
getHeight()
Gets the height of the template. |
boolean |
getReadOnly()
Gets a value indicating whether the template is read-only. |
java.awt.geom.Dimension2D |
getSize()
Gets the size of the template. |
float |
getWidth()
Gets the width of the template. |
void |
reset()
Resets an instance. |
void |
reset(java.awt.geom.Dimension2D size)
Resets the template and sets the specified size. |
Methods inherited from class com.spire.pdf.graphics.PdfShapeWidget |
---|
getBounds |
Methods inherited from class com.spire.pdf.graphics.PdfLayoutWidget |
---|
draw, draw, draw, draw, draw, draw |
Methods inherited from class com.spire.pdf.graphics.PdfGraphicsWidget |
---|
draw, draw, draw |
Constructor Detail |
---|
public PdfTemplate(java.awt.geom.Dimension2D size)
size
- The size.public PdfTemplate(PdfAnnotation annotation)
public PdfTemplate(java.awt.geom.Dimension2D size, boolean writeTransformation)
public PdfTemplate(float width, float height)
width
- The width.height
- The height.public PdfTemplate(double width, double height)
width
- The width.height
- The height.public PdfTemplate(float width, float height, boolean isPdfAppearance)
width
- The width.height
- The height.isPdfAppearance
- Indicates if the template is used for PdfAppearance.public PdfTemplate(java.awt.geom.Rectangle2D cropBox)
public PdfTemplate(java.awt.geom.Rectangle2D cropBox, java.awt.geom.Rectangle2D mediaBox)
cropBox
- RectangleF cropBoxmediaBox
- RectangleF mediaBoxMethod Detail |
---|
public PdfCanvas getGraphics()
It will return null, if the template is read-only.
public java.awt.geom.Dimension2D getSize()
public float getWidth()
public float getHeight()
public boolean getReadOnly()
Read-only templates does not expose graphics. They just return null.
public void reset(java.awt.geom.Dimension2D size)
size
- The size.public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |