Code Samples

There are several possibilities to start a print job to novaPDF printer, and depending on your application, you should choose a sample that best fits your needs. Please visit the What sample to chose page for more details.

When unzipping the samples please maintain the original file structure because there are cross-references between the source files included. If you have problems using the samples don’t hesitate to contact us at support@novapdf.com

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

ASP.NET PDF generator sample (ASP.NET)

An ASP.NET PDF generator sample application that prints using the Printer object.

PDF Reports (Access)

PDF Reports Sample is an Access database with one table and one form.

Hello World (C++)

Hello World sample is a simple Windows console application that prints one page with the "Hello World" text to the novaPDF Printer.

Hello World (network) (C++)

Hello World (network) sample is similar with Hello World sample but it adds network functionality.

MFC Scribble (C++)

The MFC Scribble sample extends the standard MFC Scribble sample with the generation of PDF files using novaPDF Printer. Use it to write a PDF document in C++.

MFC Converter (C++)

The MFC Converter sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function.

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 Printer.

CSharp Converter (C#)

The CSharp Converter sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function.

Word OLE CSharp (C#)

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

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 Printer.

VCL Converter (Delphi)

The VCL Converter sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function.

Word OLE (Delphi)

The Word OLE Delphi sample demonstrates how to convert a MS Word Document to PDF using Word automation.

Hello World (Java)

An Java PDF writer application that prints to a specified printer.

Word OLE (Java)

Converts a MS Word Document to PDF using Word automation.

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 Printer.

VB Converter (Visual Basic)

The VB Converter sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function.

Word OLE (Visual Basic)

The Word OLE Visual Basic sample demonstrates how to convert a MS Word Document to PDF using Word automation.

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 Printer.

VBNet Converter (VBNet)

The VBNet Converter sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function.

Word OLE (VBNet)

The Word OLE VBNet sample demonstrates how to convert a MS Word Document to PDF using Word automation.