PDFCreator

ProgID: PDFCreator.PDFCreatorObj

A PDFCreator object gives you the ability to get information about PDFCreator including its current state as well as some application settings.

Printers GetPDFCreatorPrinters

Summary: This property returns an object of Printers (for further information see Printers).

Return value: A Printers object.

bool IsInstanceRunning

Summary: Checks if PDFCreator is already running.

Return value: True, if PDFCreator is running, otherwise false.

Note

Use this property to check if PDFCreator is running before start working with the queue object. If PDFCreator is already running, your attemption to initialize the queue will fail.

Hint

For a small tutorial, take a look at the samples. Convert a single file is a good starting point.

void PrintFile(string filePath)

Summary: Executes print command on the file specified by the parameter filePath.

filePath: The path to the file which should be printed.

Note

If it is necessary to change the default printer and the PDFCreator default printer setting in the application settings at the general tab is set to “ask”, this method will not print your file. Be aware that the default value is “ask”. Instead use the method named PrintFileSwitchingPrinters described below.

void PrintFileSwitchingPrinters(string path, bool allowDefaultPrinterSwitch)

Summary: Executes print command on the file specified by the parameter path. Additionally, it allows you to decide, if the default printer should be switched.

path: The path to the file which should be printed.

allowDefaultPrinterSwitch: If set to true, the default printer will be temporarily switched independent of the current PDFCreator application setting. If set to false, this method behaves like the PrintFile method explained above.

void AddFileToQueue(string path)

Summary: Adds a file directly to the queue without the need of printing. Currently, only .PS and PDF files can be added directly, in future COM Interface versions this might change.

path: The path to the file which should be added.