You are viewing 32 articles with the tag SDK

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.

Word OLE VBNet - SDK sample

Word OLE VBNet sample is a simple Microsoft Windows console application that converts a Microsoft Word document (an example path for the document would be C:\Test.docx) to a PDF using Word OLE automation and the novaPDF SDK application.

[novaPDF SDK] - Do I have to open or activate a profile before trying to set an option for the printer driver?

When setting the options via the COM object (novaPDF SDK) you don't have to activate a profile before. You can set options for a profile that is not active but you have to be sure that that profile is created before you set the options. If no profiles are created, then all options will be made in the default profile.

[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] - Are printer options related to each other? Do I need to set any option before I can set the Save Folder and Save folder options?

There are some boolean settings that enable some features (like bookmark detection, watermarks or security). If you do not enable the feature with the appropriate option, the details you set on how the feature should act will not be taken in account. As an example, when you set programmatically a file name and a save folder you also have to disable the prompt of the Save As dialog (set the "Prompt Save Dialog" to 0).

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

Hello World (C#) - SDK sample

Hello World CSharp sample is a simple Windows console application that prints one page with the "novaPDF says Hello World from C#" text to the novaPDF. It demonstrates the basic use of the INovaPDFOptions interface. The printing job is made using the package "System.Drawing.Printing"

[novaPDF SDK] How to generate a pdf file without the Save As dialog

To disable novaPDF "Save As" dialog, you have to set the folder and the file name programmatically. Here's an example on how you can set the folder and file name of the PDF to be saved in different programming languages (next code, has to be called after the Initialize() function).

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.

Multiple printers SDK sample

Multiple printers sample is similar with the Temporary printer sample but it uses several threads.