|
|||||||||
| 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 mediabox| method 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 | ||||||||