Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 291

Previous Page 290   Index   Next Page 292

Function Reference
Page 291 of 750
// 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.
pdfEditPage(3);
SI32 tmplCount = pdfGetTemplCount();
for (SI32 i = 0; i < tmplCount; i++)
pdfDeleteTemplateEx(i);
pdfEndPage();
DeleteXFAForm
Syntax:
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.
DrawArc
Syntax:
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: DeleteTemplateEx

Next topic: DrawChord