DynaPDF Manual - Page 297

Previous Page 296   Index   Next Page 298

Function Reference
Page 297 of 770
// so that all interactive features are also imported. However, the
// third page contains invalid contents that should be removed. The
// imported pages were converted to templates during import (it is also
// possible to import pages without conversion). The template handles
// of the imported pages are not known so that we use the indexes instead.
SI32 tmplCount = pdfGetTemplCount();
for (SI32 i = 0; i < tmplCount; i++)
void pdfDeleteXFAForm(
const PPDF* IPDF) // Instance pointer
The function deletes a maybe existing XFA form (XML based form) if any. This can be useful if the
PDF file contains a hybrid form because DynaPDF does not allow editing form fields as long as an
XFA form is present.
SI32 pdfDrawArc(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the midpoint of the arc
double PosY,
// Y-Coordinate of the midpoint of the arc
double Radius,
// Radius
double StartAngle, // Start angle
double EndAngle)
// End angle
This function draws an arc by using a start and end angle. A full circle is drawn if the start and end
angles coincide. The path is not closed, stroked or filled so that it will be invisible as long it is not
stroked, filled or both (see ClosePath() or StokePath() for further information).
The current point is connected with the start point and then updated to the end point of the arc (see
example below).
The draw direction can be changed with the function SetDrawDirection(). The start and end angles
are always measured counter clockwise independent of the drawing direction.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.

Previous topic: DeleteTemplate, DeleteTemplateEx

Next topic: DrawArcEx, DrawChord