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

DynaPDF Manual - Page 555

Previous Page 554   Index   Next Page 556

Function Reference
Page 555 of 750
switch(orientation)
{
case 90:
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: PolyLineAnnot