PDFCreatorPilot3Lib.PDFDocument3Class PDF = new PDFCreatorPilot3Lib.PDFDocument3Class();
// initialize PDF Engine
PDF.StartEngine("demo@demo", "demo");
// set filename
PDF.FileName = "TestCSHARP.PDF";
PDF.AutoLaunch = true; // auto-open generated pdf document
// start document generation
PDF.BeginDoc();
// draw "HELLO, PDF" message on the current PDF page
PDF.PDFPAGE_SetActiveFont("Verdana", true, false, false, false, 14, 0);
PDF.PDFPAGE_TextOut(10, 20, 0, "HELLO, PDF!");
// finalize document generation
PDF.EndDoc();
No comments:
Post a Comment