Components for Developers
© 2000-2016, Two Pilots

PDF Library   EMF2PDF SDK Pilot   Virtual Printers   HTML2PDF-X Pilot   Converters   PDF Mosaic

Two Pilots blog

Compare PDF Creator Pilot Library and PDF Mosaic SDK

December 2nd, 2011

PDF Creator Pilot SDK

PDF Creator Pilot is a library for creating PDF files from Visual Basic / Visual Basic .NET, Delphi, Visual C++, VBScript, ASP / ASP.NET, C#, PHP and Python. PDF Creator Pilot uses ActiveX (also known as COM) technology. You can use the library from any programming language
that can use ActiveX components. PDF Creator Pilot allows you to generate PDF files on the fly. It is ideal SDK for creating web- and desktop applications with dynamic PDF document generation and manipulation. PDF Creator Pilot includes detailed online documentation with the step-by-step tutorials for creating pdf files.

This PDF library can create, open, merge or otherwise manipulate PDF files. You can use the PDF library’s commands as well as WinApi functions (virtual device context (PDF’s HDC)). PDF security, font embedding, different font charsets, document compression are also supported.


PDF Mosaic Library .NET

PDF Mosaic allows you to create, merge and modify PDF documents. Simple yet powerful API will help you to process PDF documents with ease. PDF Mosaic does not require any third-party applications or libraries to generate or modify PDF documents. PDF Mosaic is a C# library, it is created for .NET Framework 2.0 and later. PDF Mosaic SDK for developers who program in C#, J#, Vb.Net, JScript.Net, and who need to process PDF files (create, open, paste, split, modify, and more).The library has more than 500 supported functions for working with PDF documents. Library opens and reads pdf files using scoped parsing of document’s content.

PDF Mosaic Library has the step-by-step tutorials for creating pdf documents using .NET.


You can use the following feature comparison as a guide to determining whether you require PDF Creator Pilot Library or PDF Mosaic .NET Library.

PDF Creator Pilot PDF Mosiac .NET SDK
Create and read existing PDF documents Yes Yes
Merge and split PDF documents Yes Yes
Adding and deleting PDF document’s pages Yes Yes
Unicode support Yes Yes
Create watermarks for each page Yes Yes
Add thumbnails to a PDF document Yes Yes
Standard (base 14), TrueType, Type1, OpenType fonts reading and embedding Yes Yes
Support for Eastern European, Turkish, Baltic, Russian, Greek, and CJK character sets Yes Yes
Create interactive PDF documents using JavaScript and hyper links Yes Yes
Interactive AcroForm elements: text fields, buttons, radio buttons, combo- and check boxes Yes Yes
Encryption (40, 128 bit) and password protection Yes Yes
Create and manipulate tree-like outlines Yes Yes
Virtual device context (HDC) for drawing with WinAPI functions Yes
Use images in various formats (JPEG, TIFF, PNG, BMP, GIF) Yes Yes
Create and use annotations Text, FileAttachment, Sound, Movie, and more Yes Yes
Generate a PDF document on disk or in memory (for web applications) Yes Yes
Simple graphics: ellipses, rectangles, circles, pies Yes Yes
Complex graphics: free form paths, clipping, polygons, text Yes Yes
Change opacity level and blend mode for text and graphics Yes Yes
RGB, CMYK and Grayscale colors, ICC Yes Yes
Extracting text from PDF documents Yes Yes
Hyperlinks, destinations, events Yes Yes
Actions (GoTo, Launch, URI, SubmitForm, ResetForm, JavaScript) Yes Yes
Graphics templates Yes
Create, read and modify Document Info Yes Yes
Support of Layers (Optional Content Groups) Yes Yes
Set and get ViewerPreferences, PageLayout, PageMode Yes Yes
Creation and manipulation of PDF tables Yes Yes
Text formatting, output of multi-column text Yes Yes
No differentiation between client and server application Yes Yes
Creation of PDF/A and PDF/X files Yes
3D Annotations Yes
EMF Conversion Yes
Digital Signatures
Ability for displaying and printing PDF documents (view and render PDF) Yes
Uncompress and Re-Compress PDF documents Yes Yes
Fill PDF forms Yes Yes
Translate, rotate and scale multiple pages to a single page Yes Yes
100% PDF Acrobat compatible Yes Yes
Transparent masks Yes Yes
Windows XP/2003/Vista/7, x64 (64-bit architecture) support Yes Yes


See also Virtual Printer SDK for Win 7, C++, C#, Delphi, VB.NET, VB (royalty free)

Virtual Printers is EMF virtual printer for software developers with custom name and features.

Some use cases:

  • Customer uses the driver to print an invoice, extract text, generate a unique ID based on that text content, and put this ID on the PDF version of an invoice;
  • Customer converts a document to a PDF and, after collecting user input in a custom application, uploads the PDF with collected data to a web service;
  • Customer creates reports in TIFF and TXT formats and uploads them to an FTP server;
  • Customer uses preprocessing to extract textual commands from a print job and then a custom client application uses these commands for business logic;
  • Customer uses preprocessing to configure the watermark settings and business logic of a custom client application;
  • Customer uses virtual driver with POS printers.

Look a virtual printer examples for C++, C#, Delphi, VB.NET, VB.

The PDF Creator Pilot library is used in the Virtual Printer to generate PDF documents.

Artem Golubnichenko,
Two Pilots

New Version of PDF Creator Pilot Has Been Released.

July 31st, 2011

Our company released the next version of PDF Library – PDF Creator Pilot 4.3.3256. In the new version of PDF Library we improved a quality of converting EMF files to PDF documents. We’ve added new method DrawPageOnPage for grouping multiple pages on single page in the pdf documents. We improved the process of extracting text from pdf documents (see methods GetPageText, GetDocumentText). We fixing some bugs in interactive forms, in opening PDF files, in rasterizator, and more (you may see the history here).

Free version of PDF Library for C++, C#, Delphi, ASP, ASP.NET, VB, VB.NET, VBScript, PHP, Python you mau download here.

Artem Golubnichenko,
Two Pilots

The new PDF library from Two Pilots company

April 12th, 2011

Our company has released a new PDF library, which is a full featured library for creating and editing PDF files by easy and flexible way. The new name of the library is PDF Mosaic. We invite you to visit the site of library –
PDF Mosaic may modify, merge, and split existing PDF files, or move pages from existing PDF files into new PDF documents. The most important goal of the library – it’s easy to use.
Main features of the library:
Drawing: points, lines, boxes, circles, Bezier curves, polygons, stars, free form paths.
Text: Unicode support, insert hyperlinks.
Supports the insertion of the following image types: BMP, PNG, JPEG, TIFF.
You may download the latest version of the library from the site or direct from this link –

Artem Golubnichenko,
Two Pilots

Feature for grouping multiple pages on single page in the pdf document

March 17th, 2011

The library of PDF Creator Pilot has feature for combining 2, 3, 4, etc. pages in a single page in the pdf document. For this purpose, we added a function DrawPageOnPage, which has the following options:

srcPageIndex – Index of the source page;
destPageIndex – Index of the destination page;
left – The x-coordinate, in pixels, of the upper-left corner of the destination rectangle;
top – The y-coordinate, in pixels, of the upper-left corner of the destination rectangle;
width – The width, in pixels, of the destination rectangle;
height – The height, in pixels, of the destination rectangle.

An example of using this function. Assume that we have a pdf file with 4 pages and wish to draw  (group, fit) them on single page.

// PDF object is supposed to be created
// PDF file contains 4 pages A4
PDF->Open(“4pagesA4.pdf”, “”);

// Add a new page for drawing at end of document
PDF->PageSize = pfA4; // set any page size here

PDF->CurrentPage = 4; // index of new page
long height = PDF->PageHeight;
long width = PDF->PageWidth;

// Draw page on the page.
PDF->DrawPageOnPage(0, 4, 0.0, 0.0, width/2, height/2);
PDF->DrawPageOnPage(1, 4, width/2, 0.0, width/2, height/2);
PDF->DrawPageOnPage(2, 4, 0.0, height/2, width/2, height/2);
PDF->DrawPageOnPage(3, 4, width/2, height/2, width/2, height/2);

PDF->SaveToFile(“result.pdf”, true);

You may see the result of groupinf pages here: result.pdf

Artem Golubnichenko,
Two Pilots

Exif Pilot supports two interfaces

February 9th, 2011

The company  “Two Pilots”  has released a new version of Exif Pilot. Exif Pilot 4.3 – the advanced version of the Free EXIF-Editor, which allows one to review, edit and create EXIF and IPTC data not only in an application window, but also in Windows Explorer.

Exif Pilot is a Free EXIF-Editor which supports a paid Plug-in for Batch Editing of graphic files.

The new version of the program has a number of improvements:
– a unique program which unites in itself two interfaces which work with EXIF, IPTC and XMP data;
– integration with the operating system, and extended capabilities to work with image metadata;
– a new type of export to MS Excel File (at the level of Tag-Names in the table)


– convenience, simplicity and speed of use;

If you need to see, create, or edit EXIF, EXIF GPS or IPTC information, we recommend to you our new version of Exif Pilot.

Ira Cheredova,
Two Pilots

PDF Creator Pilot and VBA

January 26th, 2011

PDF Creator Pilot is a COM library and as all that libraries it may be used in a VBA (Visual Basic for Applications).

To use it in your macros you need to do the folowing:

  • Open the Macros dialog and select existing or create a new one
  • In the macros editor window add a reference to the PDF Creator Pilot library
  • In the References window find and check “PDF Creator Pilot Type Library” string
  • Now declare the variable and you are ready to use the PDF Creator Pilot

Max Filimonov,
Two Pilots Developers Team.

EMF to PDF Converter

January 20th, 2011

PDF Creator Pilot’s EMF converter is one of the best in the world. We are working on improving our EMF converter always. EMF to PDF feature can convert EMF (Enhanced MetaFile) to PDF document file for reading with Adobe Reader and other PDF Readers. For converting EMF files you need just call method PlayMetaFile. See example “How to Convert a Metafile to a PDF Using C++“. With EMF to PDF conversion, users can encrypt PDF documents, add password, compressing, text and images, etc.

Artem Golubnichenko,
Two Pilots

News from the PDF Library Laboratory

December 31st, 2010

We are working to improve the quality of pdf-files created by PDF Creator Pilot library.  Significant improvements have been made in that part of the library, which converts the emf-files in pdfs. Including:

1. Fixed bugs with incorrect positioning for right text align in EMF.
2. Added support for “brush with hatch” style in EMF.
3. Improved working with the AlphaBlend function in EMF.

The latest version of the library PDF Creator Pilot 4.3.2000 is available for download:

PDF Creator Pilot 4.3.3200
PDF Creator Pilot 4.3.3200, x64 edition

Artem Golubnichenko.

New method: ShowTextParagraph

October 4th, 2010

We’re glad to introduce the new method ShowTextParagraph and it’s Unicode version – ShowUnicodeTextParagraph.

This method draws a text paragraph, this means that the library will automatically split the paragraph text to the lines to fit the page bounds, align text lines as needed and add a new PDF page if the text does not fit to the rest of the current PDF page.


Here is a sample of how to use it (Visual Basic Script):

fnt = PDF.AddFont(“Arial”, false, false, false, false, fcDefault)
PDF.UseFont fnt, 14
PDF.ShowTextParagraph x, y, paJustify, interval, marginLeft, marginTop, marginRight, marginBottom, paragr_Text

So now, for example, you may convert your favourite text book to the PDF format for your eBook reader.

Here you may find Visual Basic Script samples that convert TXT file to a PDF (ASCII and Unicode versions):

  1. install the library,
  2. download and unpack scripts,
  3. run the script,
  4. get the PDF book.

Max Filimonov,
Two Pilots Developers Team.

How to use “PDF Creator Pilot” on x64 systems with Microsoft Visual Studio.

August 24th, 2010

There are two methods you can use to accomplish this in your .NET projects. Let’s suppose we have a C# project, and that “PDF Creator Pilot x64” is already installed.

Method #1

1) Open your project (or create a new one) and choose “Add Reference” in the Solution Manager (you can also do this from the main menu -> Project -> Add Reference…) and then select the “COM” tab.

2) In the component list find “PDFCreatorPilot Type Library” and press the “OK” button.

3) In the code file (*.cs) add this line:

using PDFCreatorLib;

and declare a variable somewhere in your code:

PDFDocument4 pdf = new PDFDocument4();
pdf.SetLicenseData(“demo”, “demo”);
// more code…

4) You may set project target type to “x64” or leave it as “Any CPU”.

If all is done correctly, the PDF Creator Pilot now will be available to you in your project.

In some cases developers may not be able to add a reference as shown in the example above. In that case we recommend that you manually register the COM dll (PDFCreatorPilot.dll) with an administrator’s credentials:

regsvr32 PDFCreatorPilot.dll

After this please restart the Visual Studio and try to add the reference again. If this does not help, then please use Method #2.

Method #2

1) We need to manually create an interop wrapper library for .NET from the “PDF Creator Pilot x64” COM library. Find please where the “PDFCreatorPilot.dll” (x64 version) is located and create a simple batch file with the following line:

“C:\Program Files\Microsoft SDKs\Windows\v6.xx\bin\TlbImp.exe” “full\path\to\PDFCreatorPilot.dll” /out:”Interop.PDFCreatorPilotLib.dll” /namespace:PDFCreatorLib /machine:X64

2) Launch this file. This will produce the “Interop.PDFCreatorPilotLib.dll” file which is an interop library for the COM dll.

Note: the TlbImp.exe is a standard Windows SDK utility. If you do not have it on your machine,  please install the Windows SDK from the Microsoft website:

3) Open your project (or create a new one) and choose “Add Reference” in the Solution Manager (you can also do this from the main menu -> Project -> Add Reference…) and select the “Browse” tab. In the file list find “Interop.PDFCreatorPilotLib.dll” created in the previous step and press the “OK” button.

4) In the code file (*.cs) add this line:

using PDFCreatorLib;
/* PDFCreatorLib is a namespace you’ve specified as a parameter for TlbImp.exe. */

and declare a variable somewhere in your code:

PDFDocument4 pdf = new PDFDocument4();
pdf.SetLicenseData(“demo”, “demo”);
// more code…

5) You may set the project target type to “x64” or leave it as “Any CPU”.

If all is done correctly, the PDF Creator Pilot now will be available to you in your project.

You may download the sample project here. This project contains a manually created interop DLL, and a C# project that refers this interop.

Max Filimonov,
Two Pilots Developers Team.

PDF Library   EMF2PDF SDK Pilot   Virtual Printers   HTML2PDF-X Pilot   Converters   PDF Mosaic


Support | Blog | Contact | About

© 2000-2017, Two Pilots