pdftemplate-ag凯发旗舰厅



com.spire.pdf.graphics
class pdftemplate

java.lang.object
  extended by com.spire.pdf.graphics.pdfgraphicswidget
      extended by com.spire.pdf.graphics.pdflayoutwidget
          extended by com.spire.pdf.graphics.pdfshapewidget
              extended by com.spire.pdf.graphics.pdftemplate
all implemented interfaces:
ipdfwrapper

public class pdftemplate
extends pdfshapewidget
implements ipdfwrapper

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

pdftemplate

public pdftemplate(java.awt.geom.dimension2d size)
initializes a new instance of the class.
parameters:
size - the size.

pdftemplate

public pdftemplate(pdfannotation annotation)

pdftemplate

public pdftemplate(java.awt.geom.dimension2d size,
                   boolean writetransformation)

pdftemplate

public pdftemplate(float width,
                   float height)
initializes a new instance of the class.
parameters:
width - the width.
height - the height.

pdftemplate

public pdftemplate(double width,
                   double height)
initializes a new instance of the class.
parameters:
width - the width.
height - the height.

pdftemplate

public pdftemplate(float width,
                   float height,
                   boolean ispdfappearance)
initializes a new instance of the class.
parameters:
width - the width.
height - the height.
ispdfappearance - indicates if the template is used for pdfappearance.

pdftemplate

public pdftemplate(java.awt.geom.rectangle2d cropbox)

pdftemplate

public pdftemplate(java.awt.geom.rectangle2d cropbox,
                   java.awt.geom.rectangle2d mediabox)
initializes a new instance of the class.
parameters:
cropbox - rectanglef cropbox
mediabox - rectanglef mediabox
method detail

getgraphics

public pdfcanvas getgraphics()
gets graphics context of the template.
see also:
it will return null, if the template is read-only.

getsize

public java.awt.geom.dimension2d getsize()
gets the size of the template.

getwidth

public float getwidth()
gets the width of the template.

getheight

public float getheight()
gets the height of the template.

getreadonly

public boolean getreadonly()
gets a value indicating whether the template is read-only.
see also:
read-only templates does not expose graphics. they just return null.

reset

public void reset(java.awt.geom.dimension2d size)
resets the template and sets the specified size.
parameters:
size - the size.

reset

public void reset()
resets an instance.


网站地图