Popular Articles

Latest Articles


You are viewing 26 articles with the tag SDK Sample

Hello World (Network) - SDK sample

Hello World (network) sample is similar with Hello World sample but it can be used from network and print to novaPDF installed on a different computer. The sample requests the shared printer name in a dialog as "\\computer name\printer name" (for example if novaPDF is installed on WS1, then you should enter "\\WS1\novaPDF").

ASP.NET PDF generator - SDK sample

Hello World (ASP.NET PDF generator) sample is a simple ASP application that generates one PDF file containing the text "novaPDF says Hello World from ASP.NET". The PDF is created using the novaPDF printer driver and is saved in the “upload” folder. It demonstrates the basic use of the INovaPDFOptions interface. The printing job is done using the package System.Drawing.Printing

VCL Converter (Delphi PDF) - SDK sample

The VCL Converter (Delphi PDF) sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function. It also demonstrates how to set different options and manage profiles in your novaPDF development.

MFC Converter - SDK sample

The MFC Converter sample demonstrates how to convert an existing file by printing it to novaPDF using the ShellExecute function. It also demonstrates how to set different options and manage profiles. The same approach should be taken if you print using a "Print()" method from another object (like an internet browser or a report control). Just replace the ShellExecute call with the call of your Print method.

Hello World (C++) - SDK sample

Hello World sample is a simple Windows console application that prints one page with the "Hello World" text to the novaPDF Printer. It demonstrates the basic use of the INovaPDFOptions interface. The printing job is made with Windows API calls OpenPrinter, StartDoc,… It generates a "Hello World.pdf" file in the working folder.

Java PDF creator (Word OLE) - SDK sample

The Word OLE (Java) SDK sample is a basic Java console application that converts a MS Word document (in this sample the default location for the source document is C:\temp\test.doc) to PDF using Word OLE automation and j-Interop along with novaPDF.

Java PDF writer - SDK sample

Hello World (Java) sample is a basic Java console application that generates (using the novaPDF printer) one PDF file containing the text "Hello World from Java2!". It demonstrates the basic use of the INovaPDFOptions interface with j-Interop.

Word OLE (Delphi PDF) - SDK sample

The Word OLE (Delphi PDF) sample is a simple Windows console application that converts a MS Word document (C:\Test.doc) to PDF using Word OLE automation. The sample can be used to elaborate more complex code and applications with the novaPDF SDK.

Delphi PDF - Hello World sample

Hello World (Delphi PDF) sample is a simple Windows console application that prints one page with the "Hello World from Delphi!" text to the novaPDF Printer. It demonstrates the basic use of the INovaPDFOptions interface. The printing job is made with calls to the global Printer object defined by Delphi. Text is printed using Canvas.TextOut method. It generates a "Hello World.pdf" file in the working folder.

PDF Reports - SDK sample

PDF Reports Sample is an Access database with one table and one form. On the form you can set several options for the novaPDF and then press a button to generate a PDF file. A report is made on the table and it is sent to novaPDF. It demonstrates the basic use of the INovaPDFOptions interface. The printing job is made using the object "Application.Printer" Basically the sample creates a new profile called "Access Profile", sets the new profile as active, sets the user options from form controls, opens and prints a report, and restores original printer settings.

Hello World Visual Basic - SDK sample

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. This sample can be the base of a more throughout application code that can benefit VB developers.

How to set programmatically the page related settings (page size, layout) via novaPDF SDK

The page related settings have a different behavior than the other settings (save, compression, fonts, security,...). While the last are specific to the novaPDF printer driver, the page related settings are used for all printer drivers and can be set by system calls (check the DEVMODE Windows structure).

MFC Scribble - SDK sample

The MFC Scribble sample extends the standard MFC Scribble sample with the generation of PDF files and by using the novaPDF SDK application. It demonstrates how to integrate novaPDF SDK in your documents and also view the MFC architecture.

Word OLE Visual Basic - SDK sample

Word OLE VB sample is a simple Windows console application that converts a MS Word document (C:\Test.doc) to PDF using Word OLE automation. This sample demonstrates how to convert the existing Test.doc sample by printing it to novaPDF SDK Printer.

VBNet Converter - SDK sample

The VBNet Converter sample demonstrates how to convert an existing file by printing it to novaPDF Printer using the ShellExecute function. It also demonstrates how to set different options and manage profiles. The same approach should be used if you print using a "Print()" method from another object (like an internet browser or a report control). Just replace the ShellExecute call with the call of your Print method.

Hello World VBNet - SDK sample

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. It demonstrates the basic use of the INovaPDFOptions interface with this type of code.

[novaPDF SDK] - I want to change novaPDF printer option settings, do I need novaPDF SDK for that?

The answer to this question is Yes; you can change the novaPDF printer options programmatically using our COM interface and the SetOptionsXXX functions (everything you need for changing the options is included in the novaPDF SDK package).

[novaPDF SDK] SetDefaultPrinter doesn't work after RestoreDefaultPrinter is called

Q: I have set-up a workflow for novaPDF SDK that does this: first it calls SetDefaultPrinter() to set novaPDF as the default printer, then it sends a print job to it, and after that reverts back to the previous default printer calling the RestoreDefaultPrinter() function. However, after the first cycle of this workflow, novaPDF isn't set as the default printer anymore even if I use the SetDefaultPrinter() function again. Why?

[novaPDF SDK] - If I set an option value via COM, will that be persistent, or will the option be reverted when the program terminates?

The options you set via the COM object (novaPDF SDK) are persistent, we do not reset them. This is why we also provide the option profiles. You may create several option profiles and when printing just set which profile is the active one, meaning what set of options to be used for that printing job. After you set option profile you should see the settings in the novaPDF printer interface.

Temporary printer SDK sample

Temporary printer sample is similar with Hello World sample but it uses temporary printers. It demonstrates the use of AddNovaPrinter and DeleteNovaPrinter.