DynaPDF Manual - Page 627

Previous Page 626   Index   Next Page 628

Function Reference
Page 627 of 839
case -90:
case 270:
case -270:
{
double t = w;
w = h;
h = t;
}
}
if (newPage)
{
x = 50.0;
y = 50.0;
pdfAppend(PDF);
PlaceCenteredEx(PDF, tmpl, w, h, 50.0, 50.0, 227.5, 227.3);
x += 247.5;
newPage = false;
}else
{
PlaceCenteredEx(PDF, tmpl, w, h, x, y, 227.5, 227.3);
x += 247.5;
if (x > 500.0)
{
x
= 50.0;
y += 247.3;
}
if (y > 700.0)
{
pdfEndPage(PDF);
newPage = true;
}
}
}
// Close the last open page
if (!newPage) pdfEndPage(PDF);
return pdfCloseFile(PDF);
}
PlaceTemplByMatrix
Syntax:
LBOOL pdfPlaceTemplByMatrix(
const PPDF* IPDF, // Instance pointer
SI32 TmplHandle)
// Template handle
This is an internal debug function which is used to test the content parser of DynaPDF. The function
uses the current transformation matrix to place a template on the page.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: PlaceTemplateEx

Next topic: PolygonAnnot