How to set printer options

Top  Previous  Next

You can use INovaPdfOptions interface to read or set novaPDF Printer options.

 

INovaPDFOptions provides the following methods for this:

GetOptionString

SetOptionString

GetOptionLong

SetOptionLong

GetOptionEncString

SetOptionEncString

AddPredefinedForm

GetPredefinedForm

RemovePredefinedForm

SetFormVisible

GetFirstForm

GetNextForm

AddBookmarkDefinition

AddBookmarkDefinition2

ModifyBookmarkDefinition

ModifyBookmarkDefinition2

DeleteBookmarkDefinition

DeleteBookmarkDefinition2

EnableBookmarkDefinition

EnableBookmarkDefinition2

GetBookmarkDefinition

GetBookmarkDefinition2

GetBookmarkHeaderCount

GetBookmarkHeaderCount2

GetBookmarkDefinitionCount

GetBookmarkDefinitionCount2

AddWatermarkImage

AddWatermarkImage2

ModifyWatermarkImage

ModifyWatermarkImage2

DeleteWatermarkImage

DeleteWatermarkImage2

EnableWatermarkImage

EnableWatermarkImage2

GetWatermarkImage

GetWatermarkImage2

GetWatermarkImageCount

GetWatermarkImageCount2

AddWatermarkText

AddWatermarkText2

ModifyWatermarkText

ModifyWatermarkText2

DeleteWatermarkText

DeleteWatermarkText2

EnableWatermarkText

EnableWatermarkText2

GetWatermarkText

GetWatermarkText2

GetWatermarkTextCount

GetWatermarkTextCount2

 

The options are saved in the current active profile. See Private and public profiles topic for more details about profiles.

 

You have to make these settings before starting the print job.

 

The option names that you can use in the GetOptionXXXX and SetOptionXXXX functions are the names of the registry keys from the novaPDF profile. You can find the complete list of option names in the Registry keys chapter. In the Include folder of novaPDF SDK installation folder you can find the definitions for all options in the next files: novaOptions.h, novaOptions.pas, Globals.bas.