Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 756

Previous Page 755   Index   Next Page 757

Function Reference
Page 756 of 770
void* pdf = pdfNewPDF();
if (!pdf) return 2; // Out of memory?
pdfSetOnErrorProc(pdf, NULL, (void*)PDFError);
pdfSetPageCoords(pdf, pcTopDown);
pdfCreateNewPDF(pdf, "c:/cppout.pdf");
pdfAppend(pdf);
pdfSetFont(pdf, "Arial", fsNone, 20.0, true, cp1252);
pageCenter = pdfGetPageWidth(pdf) / 2.0;
y = -(20.0 + pdfGetDescent(PDF)) / 2.0; // Font size + descent
for (i = 0; i < 12; i++)
{
pdfSetFillColor(pdf, (0x00C08080 | ((SI32)alpha) << 6));
pdfWriteAngleText(pdf,"Circular Text",alpha,pageCenter,300,24,y);
alpha += 30.0;
}
pdfEndPage(pdf);
pdfCloseFile(pdf);
}
Output:
Circular Text
 

Previous topic: WriteAngleText

Next topic: WriteFText, Output rectangle