

VC++ will compile and run "Hello, PDF!" application. (7)Run the application by pressingF5(you can also use "Build" | "Debug" | "Go") You can simply copy the code from the sample above and then paste it in the VC++ code editor as shown on the screenshot below: This code will generate PDF file that will be saved using "HelloPDF_VC.PDF"filename You will need to add code which generates PDF file into themain()function. draw "Hello, PDF!" message on the document 4. connect to the PDF Creator Pilot library2. (6)The code snippet that creates PDF document is quite simple and its algorithm is quite simple too.To create PDF file, you have to do the following things:ġ. #import"PDFCreatorPilot.dll"using namespacePDFCreatorPilot To do this, you just have to add#importcompiler directive after#includedirective: (5)To use PDF Creator Pilot from our application you have to tell the compiler to import library information in the project. To editmain()function just open the class tree on the left and double click on "HelllPDF Classes" | "Globals" | "main (int argc, char* argv)" and you will get the code edit window as its shown on the screenshot below: Select"Hello, World!" application"project.ĬlickFinishto close Wizard and VC++ will generate application code withmain()function.Ĭode editor window will appear. (4)Wizard will ask what kind of Console Application you want to create. Select "Win32 Console Application" project type and enter "HelloPDF" asthe Project name as shown on the screenshot below:

(3)New Project Wizard dialog will appear on the screen. (2)Select the "New." command from "File" menu (as it is shown below) to run Project Wizard : (1)InstallPDF Creator Pilotlibrary on your computer and runVisual C++ This tutorial will teach you how to generate simplePDFdocument from VC++ using PDF Creator Pilot library. How to create PDF file from Visual C++: "Hello, PDF!" example
