DynaPDF Manual - Page 339

Previous Page 338   Index   Next Page 340

Function Reference
Page 339 of 839
Remarks:
EditTemplate() is mostly used to extract text strings from imported PDF files because imported
pages are converted to templates by default. See GetPagetext() for an example application.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
EditTemplate2
Syntax:
SI32 pdfEditTemplate2(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Template handle
Templates can be edited multiple times in the same way as normal PDF pages. Therefore, the
function prepares the template for editing. The current graphics state is saved entirely before the
template will be opened and restored when the template will be closed with EndTemplate().The
current font, line width, fill color and so on are all restored to its values before entering the template.
The function depends not on an open page.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Ellipse
Syntax:
SI32 pdfEllipse(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the bounding rectangle
double PosY,
// Y-Coordinate of the bounding rectangle
double Width,
// Width of the bounding rectangle
double Height,
// Height of the bounding rectangle
TPathFillMode FillMode) // Fill mode
The function draws an ellipse. If the coordinate system is bottom-up the point PosX, PosY defines
the lower left corner of the bounding rectangle. If the coordinate system is top-down it defines the
upper left corner.
The draw direction can be changed with the function SetDrawDirection().
An ellipse is a closed path that can be filled, stroked or both. It is also possible to draw an ellipse
invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are
described under ClipPath(). The parameter FillMode is ignored if the ellipse is drawn inside a
clipping path. The fill modes are described under ClosePath().
 

Previous topic: EditPage, EditTemplate

Next topic: EncryptPDF