novaPDF SDK includes as part of its documentation several code samples that help developers integrate it faster in their applications, depending on the programming language it is written in. This section includes several code samples showing the various possibilities to send programmatically a print job to the novaPDF SDK printer.
What Sample to choose
This section shows briefly which sample you should choose.
- If you perform a print job by calling other controls "Print()" method, or if you print an existing document using "ShellExecute()" function, you should check the MFC Converter sample.
- If you create a printer job using Windows API calls like OpenPrinter, StartDoc,… you should check the Hello World sample.
- If your application runs on a network check the Hello World (network) sample.
- If you have a document/view MFC architecture check the MFC Scribble sample.
- If you have an ASP.NET application that prints using the package "System.Drawing.Printing", check the Hello World ASP.NET sample.
- If you have a Delphi application and you print using the Printer object provided by Delphi, check the Hello World Delphi sample.
- If you have a Delphi application and you print using "ShellExecute()" or you want to handle printing events, check the VCL Converter sample.
- If you have a C# application that prints using the package "System.Drawing.Printing", check the Hello World CSharp sample.
- If you have a C# application and intend to convert existing files to PDF, see the CSharp Converter sample.
- If you have an Java application that prints, check the Hello World Java sample.
- If you have a Visual Basic application and you print using the Printer object provided by Visual Basic, check the Hello World VB sample.
- If you have a Visual Basic application and you print using "ShellExecute()" or you want to handle printing events, check the VB Converter sample
- If you have a VBNet application that prints using the package "System.Drawing.Printing", check the Hello World VBNet sample.
- If you have a VBNet application that prints using the package "System.Drawing.Printing", check the VBNet Converter sample.
- If you have an Access database and you want to generate PDF files, check the PDF Reports Access sample.
- If you have a MS Word Document and you want to generate PDF using Word OLE automation, check the Word OLE for CSharp, Word OLE for Delphi, Word OLE for Visual Basic, Word OLE for VBNet or Word OLE for Java sample.
After you have decided what sample you want to use you can download it in a zip file format below. When unzipping the samples please maintain the original file structure because there are cross-references between the source files included.
ASP.NET PDF generator sample (ASP.NET)
An ASP.NET PDF generator sample application that prints using the Printer object. Read More >>
PDF Reports (Access)
PDF Reports Sample is an Access database with one table and one form. Read More >>
Hello World (C)
Hello World sample is a simple Windows console application that prints one page with the "Hello World" text to the novaPDF SDK printer. Read More >>
Hello World (network) (C)
Hello World (network) sample is similar with Hello World sample but it adds network functionality. Read More >>
MFC Scribble (C)
The MFC Scribble sample extends the standard MFC Scribble sample with the generation of PDF files using novaPDF SDK printer. Use it to write a PDF document in C. Read More >>
MFC Converter (C)
The MFC Converter sample demonstrates how to convert an existing file by printing it to novaPDF SDK printer using the ShellExecute function. Read More >>
Hello World (C#)
Hello World sample is a simple Windows console application that prints one page with the "novaPDF says hello world from C#" text to the novaPDF SDK printer. Read More >>
CSharp Converter (C#)
The CSharp Converter sample demonstrates how to convert an existing file by printing it to novaPDF SDK printer using the ShellExecute function. Read More >>
Word OLE CSharp (C#)
The Word OLE CSharp sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>
Hello World (Delphi)
Hello World sample is a simple Windows console application that prints one page with the "Hello World from Delphi!" text to the novaPDF SDK printer. Read More >>
VCL Converter (Delphi)
The VCL Converter sample demonstrates how to convert an existing file by printing it to novaPDF SDK printer using the ShellExecute function. Read More >>
Word OLE (Delphi)
This sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>
Hello World (Java)
An Java PDF writer application that prints to a specified printer. Read More >>
Word OLE (Java)
Converts a MS Word Document to PDF using Word automation. Read More >>
Hello World (Visual Basic)
Hello World VB sample is a simple Windows console application that prints one page with the "novaPDF says Hello World from VB" text to the novaPDF SDK printer. Read More >>
VB Converter (Visual Basic)
The VB Converter sample demonstrates how to convert an existing file by printing it to novaPDF SDK printer using the ShellExecute function. Read More >>
Word OLE (Visual Basic)
The Word OLE Visual Basic sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>
Hello World (VBNet)
Hello World VBNet sample is a simple Windows console application that prints one page with the "novaPDF says Hello World from VB.Net" text to the novaPDF SDK printer. Read More >>
VBNet Converter (VBNet)
The VBNet Converter sample demonstrates how to convert an existing file by printing it to novaPDF SDK printer using the ShellExecute function. Read More >>
Word OLE (VBNet)
This sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>