How to use COM interface to print automatically an existing PDF document


#1

Hello,

Is it possible to use COM interface to print automatically to physical printer and existing document
I m using VBA and PDFCreator 3.0

Thanks for help.


#2

Hi,

yes this is possible. You can enable the print action for the job through COM.

Printing.Enabled	     Bool      If enabled, the document will be printed to a physical printer
Printing.PrinterName	 String	   Name of the printer that will be used, if SelectedPrinter is set.
Printing.SelectPrinter	 Enum	   Method to select the printer. Valid values: DefaultPrinter, ShowDialog, SelectedPrinter

(extract from http://docs.pdfforge.org/pdfcreator/latest/en/pdfcreator/com-interface/reference/settings/)

Best regards

Robin