easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

Printer Object Description

This object represents an easyPDF Printer. This is the entry point for accessing all of the easyPDF Printer SDK features.

COM Object Identifiers

ProgID easyPDF.Printer.8
CLSID 4332BEEF-5CC2-4734-82C4-39C2F60538A4
TypeLib UUID D04DA9DF-250D-42E3-B5BF-EFB2FFF0D886

Object Namespaces

COM, C++ EasyPDFPrinter
.NET COM BCL.easyPDF8.Interop.EasyPDFPrinter
Native .NET BCL.easyPDF.Printer
Java COM com.bcl.easypdf.EasyPDFPrinter.*
Native Java com.bcl.easypdf.printer.*

Example Usage (VB)

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Visual C++ 6

Due to a defect in Visual C++ 6, the #import directive generates the wrong code, which does not compile. Fortunately you can use #import with Visual Studio 2005, which generates code that then compiles under Visual C++ 6. We have already done this for you and generated the necessary import code (bepprint.tlh, bepprint.tli). Here is how to use easyPDF Printer 8 from Visual C++ 6:

#include "C:\Program Files\Common Files\BCL Technologies\easyPDF 8\bepprint.tlh"

If you must use special #import attributes, such as named_guids, rename or exclude, use Visual Studio 2005 to generate the tlh and tli files. You must then manually remove the first 3 characters (the UTF-8 Byte Order Mark) in both files, because VC6 is not Unicode compliant. Otherwise the code generated by Visual Studio 2005 will compile under VC6. Using #import directly from VC6 is unfortunately not possible.

Visual C++ 2005, 2008, 2010, 2013

Modern versions of Visual C++ do not exhibit the above mentioned problem. easyPDF SDK 8 should be imported the following manner:

#import "progid:easyPDF.Printer.8"

If you need to support multiple versions of Visual Studio, we recommend this solution:

#if _MSC_VER <= 1200 // VC6 or older
#include "C:\Program Files\Common Files\BCL Technologies\easyPDF 8\bepprint.tlh"
#import "progid:easyPDF.Printer.8"

Native .NET API

There is now a 100% native .NET API for easyPDF Printer, which is strongly recommended over the traditional COM objects.

All native .NET declarations and sample code have a light yellow background color, like this:

using(Printer printer = new Printer())
   printer.PrintJob.PrintOut(@"c:\test\input.doc", @"c:\test\output.pdf");

Native Java API

There is now a 100% native Java API for easyPDF Printer, which is strongly recommended over the traditional JACOB Java COM bridge.

All native Java declarations and sample code have a light red background color, like this:

Printer printer = new Printer();
   printer.getPrintJob().PrintOut("c:\\test\\input.docx", "c:\\test\\output.pdf");
catch(PrinterException e)