DynaPDF Manual - Page 331

Previous Page 330   Index   Next Page 332

Function Reference
Page 331 of 839
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: DeleteWatermark

Next topic: DrawArcEx, DrawChord