Code Samples for novaPDF SDK

This article applies only to novaPDF. If you don't have it yet, you must download it first.

DOWNLOAD novaPDF
Mar 04, 2019

novaPDF SDK all versions

To be able to use the samples you must install novaPDF SDK as samples work only with it. Download it here: novaPDF SDK.

Code Samples for novaPDF SDK

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.

  1. 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.
  2. If you create a printer job using Windows API calls like OpenPrinter, StartDoc,… you should check the Hello World sample.
  3. If your application runs on a network check the Hello World (network) sample.
  4. If you have a document/view MFC architecture check the MFC Scribble sample.
  5. If you have an ASP.NET application that prints using the package "System.Drawing.Printing", check the Hello World ASP.NET sample.
  6. If you have a Delphi application and you print using the Printer object provided by Delphi, check the Hello World Delphi sample.
  7. If you have a Delphi application and you print using "ShellExecute()" or you want to handle printing events, check the VCL Converter sample.
  8. If you have a C# application that prints using the package "System.Drawing.Printing", check the Hello World CSharp sample.
  9. If you have a C# application and intend to convert existing files to PDF, see the CSharp Converter sample.
  10. If you have an Java application that prints, check the Hello World Java sample.
  11. If you have a Visual Basic application and you print using the Printer object provided by Visual Basic, check the Hello World VB sample.
  12. If you have a Visual Basic application and you print using "ShellExecute()" or you want to handle printing events, check the VB Converter sample
  13. If you have a VBNet application that prints using the package "System.Drawing.Printing", check the Hello World VBNet sample.
  14. If you have a VBNet application that prints using the package "System.Drawing.Printing", check the VBNet Converter sample.
  15. If you have an Access database and you want to generate PDF files, check the PDF Reports Access sample.
  16. 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 >>
Download

PDF Reports (Access)

PDF Reports Sample is an Access database with one table and one form. Read More >>
Download

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 >>
Download

Hello World (network) (C++)

Hello World (network) sample is similar with Hello World sample but it adds network functionality. Read More >>
Download

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 >>
Download

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 >>
Download

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 >>
Download

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 >>
Download

Word OLE CSharp (C#)

The Word OLE CSharp sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>
Download

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 >>
Download

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 >>
Download

Word OLE (Delphi)

This sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>
Download

Hello World (Java)

An Java PDF writer application that prints to a specified printer. Read More >>
Download

Word OLE (Java)

Converts a MS Word Document to PDF using Word automation. Read More >>
Download

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 >>
Download

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 >>
Download

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 >>
Download

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 >>
Download

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 >>
Download

Word OLE (VBNet)

This sample demonstrates how to convert a MS Word Document to PDF using Word automation. Read More >>
Download