Print PDF files With PDFPrinterX and Pascal

Please, download and install Total PDF PrinterX. Using the sample code below you will be able to Print PDF files.

 

  Example Pascal:

uses Dialogs, Vcl.OleAuto;

var
  c: OleVariant;
  Source: String;
begin
  c:=CreateOleObject('PDFPrinter.PDFPrinterX');
  Source:='c:\test\source1.pdf';
  C.Print(Source, 'Name Of Printer', '-log c:\test\PDFPrinter.log');
  IF c.ErrorMessage Then
    ShowMessage(c.ErrorMessage);
end;
If you need examples on other languages please contact us. We will create any example specially for you.

Related topics