DynaPDF Manual - Page 773

Previous Page 772   Index   Next Page 774

Function Reference
Page 773 of 818
pdfWriteText(pdf, 50, 50 - (80 - pdfGetCapHeight()), "Clipping");
pdfApplyShading(pdf, sh);
// Restore the graphics state now to disable the clipping path
pdfRestoreGraphicState(pdf);
EndPage(pdf);
pdfCloseFile(pdf);
pdfDeletePDF(pdf); // Do not forget to delete the PDF instance
return 0;
}
Output:
 

Previous topic: How to use text as clipping path?

Next topic: SetTextFieldValue, Field format


Start Chat