<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Two Pilots blog</title>
	<atom:link href="http://www.colorpilot.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.colorpilot.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 20:11:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use &#8220;PDF Creator Pilot&#8221; on x64 systems with Microsoft Visual Studio.</title>
		<link>http://www.colorpilot.com/blog/how-to-use-pdf-creator-pilot-on-x64-systems-with-microsoft-visual-studio/</link>
		<comments>http://www.colorpilot.com/blog/how-to-use-pdf-creator-pilot-on-x64-systems-with-microsoft-visual-studio/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 20:11:53 +0000</pubDate>
		<dc:creator>max.f</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=66</guid>
		<description><![CDATA[There are two methods you can use to accomplish this in your .NET projects. Let&#8217;s suppose we have a C# project, and that &#8220;PDF Creator Pilot x64&#8243; is already installed.
Method #1
1) Open your project (or create a new one) and choose &#8220;Add Reference&#8221; in the Solution Manager (you can also do this from the main menu -&#62; Project -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>There are two methods you can use to accomplish this in your .NET projects. Let&#8217;s suppose we have a C# project, and that &#8220;PDF Creator Pilot x64&#8243; is already installed.</p>
<p><strong>Method #1</strong></p>
<p>1) Open your project (or create a new one) and choose &#8220;Add Reference&#8221; in the Solution Manager (you can also do this from the main menu -&gt; Project -&gt; Add Reference&#8230;) and then select the &#8220;COM&#8221; tab.</p>
<p>2) In the component list find &#8220;PDFCreatorPilot Type Library&#8221; and press the &#8220;OK&#8221; button.</p>
<p>3) In the code file (*.cs) add this line:</p>
<p><span style="font-family: monospace;font-size: 10pt">using PDFCreatorLib;</span></p>
<p>and declare a variable somewhere in your code:</p>
<p><span style="font-family: monospace;font-size: 10pt">PDFDocument4 pdf = new PDFDocument4();<br />
pdf.SetLicenseData(&#8221;demo&#8221;, &#8220;demo&#8221;);<br />
// more code&#8230;</span></p>
<p>4) You may set project target type to &#8220;x64&#8243; or leave it as &#8220;Any CPU&#8221;.</p>
<p>If all is done correctly, the PDF Creator Pilot now will be available to you in your project.</p>
<p>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&#8217;s credentials:</p>
<p><span style="font-family: monospace;text-align: left;font-size: 10pt">regsvr32 PDFCreatorPilot.dll</span></p>
<p>After this please restart the Visual Studio and try to add the reference again. If this does not help, then please use Method #2.</p>
<p><strong>Method #2</strong></p>
<p>1) We need to manually create an interop wrapper library for .NET from the &#8220;PDF Creator Pilot x64&#8243; COM library. Find please where the &#8220;PDFCreatorPilot.dll&#8221; (x64 version) is located and create a simple batch file with the following line:</p>
<div style="font-family: monospace;font-size: 10pt;text-align: left">&#8220;C:\Program Files\Microsoft SDKs\Windows\v6.xx\bin\TlbImp.exe&#8221; &#8220;full\path\to\PDFCreatorPilot.dll&#8221; /out:&#8221;Interop.PDFCreatorPilotLib.dll&#8221; /namespace:PDFCreatorLib /machine:X64</div>
<p>2) Launch this file. This will produce the &#8220;Interop.PDFCreatorPilotLib.dll&#8221; file which is an interop library for the COM dll.</p>
<p><em>Note:</em> 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: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&amp;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&amp;displaylang=en</a></p>
<p>3) Open your project (or create a new one) and choose &#8220;Add Reference&#8221; in the Solution Manager (you can also do this from the main menu -&gt; Project -&gt; Add Reference&#8230;) and select the &#8220;Browse&#8221; tab. In the file list find &#8220;Interop.PDFCreatorPilotLib.dll&#8221; created in the previous step and press the &#8220;OK&#8221; button.</p>
<p>4) In the code file (*.cs) add this line:</p>
<p><span style="font-family: monospace;font-size: 10pt">using PDFCreatorLib;<br />
/* PDFCreatorLib is a namespace you&#8217;ve specified as a parameter for TlbImp.exe. */</span></p>
<p>and declare a variable somewhere in your code:</p>
<p><span style="font-family: monospace;font-size: 10pt">PDFDocument4 pdf = new PDFDocument4();<br />
pdf.SetLicenseData(&#8221;demo&#8221;, &#8220;demo&#8221;);<br />
// more code&#8230;</span></p>
<p>5) You may set the project target type to &#8220;x64&#8243; or leave it as &#8220;Any CPU&#8221;.</p>
<p>If all is done correctly, the PDF Creator Pilot now will be available to you in your project.</p>
<p>You may download the sample project <a href="http://www.colorpilot.com/pdfsamples/CSharpX64Test_ManualInterop.zip">here</a>. This project contains a manually created interop DLL, and a C# project that refers this interop.</p>
<p style="text-align: right">Max Filimonov,<br />
Two Pilots Developers Team.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/how-to-use-pdf-creator-pilot-on-x64-systems-with-microsoft-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merge and Split PDFs with PDF Creator Pilot</title>
		<link>http://www.colorpilot.com/blog/merge-and-split-pdfs-with-pdf-creator-pilot/</link>
		<comments>http://www.colorpilot.com/blog/merge-and-split-pdfs-with-pdf-creator-pilot/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 03:57:21 +0000</pubDate>
		<dc:creator>Artem Golubnichenko</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=61</guid>
		<description><![CDATA[Do you need to split or merge PDF files and reorganize pages in your PDF documents? If yes, then PDF Creator Pilot library can help you do this. PDF Creator Pilot allows you to not only split, merge, and reorganize pages in your PDFs, but also to create tree-like outlines (bookmarks), annotations, watermarks, thumbnails, and [...]]]></description>
			<content:encoded><![CDATA[<p>Do you need to split or merge PDF files and reorganize pages in your PDF documents? If yes, then <a href="//www.colorpilot.com/pdflibrary.html" target="_blank">PDF Creator Pilot</a> library can help you do this. <a href="//www.colorpilot.com/pdflibrary.html" target="_blank">PDF Creator Pilot</a> allows you to not only split, merge, and reorganize pages in your PDFs, but also to create tree-like outlines (bookmarks), annotations, watermarks, thumbnails, and interactive AcroForm elements for your PDF documents.</p>
<p>PDF Library has the following methods for splitting, merging, and reorganizing pages:</p>
<ul>
<li><a href="http://www.colorpilot.com/pdfcreatorpilotmanual/IPDFDocument4/Append.html" target="_blank"><strong>Append </strong></a>- This method appends the contents of a previously saved PDF file (not a BLOB) to a newly created (or opened) PDF document.</li>
</ul>
<ul>
<li><a href="http://www.colorpilot.com/pdfcreatorpilotmanual/IPDFDocument4/Open.html" target="_blank"><strong>Open </strong></a>- This method opens an existing PDF document, then reads and parses its contents.</li>
</ul>
<ul>
<li><a href="http://www.colorpilot.com/pdfcreatorpilotmanual/IPDFDocument4/AddPage.html" target="_blank"><strong>AddPage </strong></a>- This method creates a new PDF page, appending it to the end of the PDF document. It does not set the new page as current.</li>
</ul>
<ul>
<li><a href="http://www.colorpilot.com/pdfcreatorpilotmanual/IPDFDocument4/DeletePage.html" target="_blank"><strong>DeletePage </strong></a>- This method removes the specified page from a PDF document.</li>
</ul>
<p>With the help of <a href="//www.colorpilot.com/pdflibrary.html" target="_blank">PDF Creator Pilot</a>, you can easily and quickly manage your PDFs, reduce the size of PDF files, and quickly combine a group of files using the merge feature.</p>
<p style="text-align: right">Artem Golubnichenko</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/merge-and-split-pdfs-with-pdf-creator-pilot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DjVu Converter</title>
		<link>http://www.colorpilot.com/blog/djvu-converter/</link>
		<comments>http://www.colorpilot.com/blog/djvu-converter/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:40:12 +0000</pubDate>
		<dc:creator>Artem Golubnichenko</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=56</guid>
		<description><![CDATA[The electronic DjVu format is becoming more and more popular. It is intended for storage of scanned documents (forms, electronic books and so on). DjVu is positioned as an alternative to the PDF format. An advantage of DjVu is the lighter size of the DjVu files in comparison to PDF file sizes.
Two Pilots has released [...]]]></description>
			<content:encoded><![CDATA[<p>The electronic DjVu format is becoming more and more popular. It is intended for storage of scanned documents (forms, electronic books and so on). DjVu is positioned as an alternative to the PDF format. An advantage of DjVu is the lighter size of the DjVu files in comparison to PDF file sizes.<br />
Two Pilots has released a new freeware product for creating DjVu documents. <a href="http://www.colorpilot.com/djvuprinter.html" target="_blank">DjVu Printer Pilot</a> is an application based on a virtual printer. After installation of the program, the &lt;DjVu Printer Pilot&gt; virtual printer will be installed in your system. Now you can &#8220;print to&#8221; this printer any document you wish to be converted into DjVu. While printing, the document is automatically opened  in the DjVu Printer Pilot window. From here you can save the converted DjVu document or combine it with another document created earlier.<br />
For DjVu creation, the <a href="http://djvu.sourceforge.net/" target="_blank">DjVuLibre</a> free library is used.</p>
<p style="text-align: right">Artem Golubnichenko</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/djvu-converter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rounding Effect</title>
		<link>http://www.colorpilot.com/blog/rounding-effect/</link>
		<comments>http://www.colorpilot.com/blog/rounding-effect/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:36:52 +0000</pubDate>
		<dc:creator>Artem Golubnichenko</dc:creator>
				<category><![CDATA[For software developers]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=50</guid>
		<description><![CDATA[Look at the picture of the line before inexact rounding of floating points, and at the
picture after rounding:

The problem arose while converting an EMF into a PDF or while drawing an HDC-context taken from a PDF. The problem was connected to the Polyline(To) function. The function transformed an array of points with close value coordinates. [...]]]></description>
			<content:encoded><![CDATA[<p>Look at the picture of the line before inexact rounding of floating points, and at the<br />
picture after rounding:</p>
<p><img class="aligncenter size-full wp-image-52" src="http://www.colorpilot.com/blog/wp-content/uploads/2010/07/blog.png" alt="blog" width="504" height="482" /></p>
<p>The problem arose while converting an EMF into a PDF or while drawing an HDC-context taken from a PDF. The problem was connected to the Polyline(To) function. The function transformed an array of points with close value coordinates. Then, to draw a set of lines in a PDF, transformation of the<br />
coordinates from HDC to PDF coordinates was necessary. For this transformation the LPtoDP function was used. But LPtoDP returns integer values. For example, this function transforms the (160, 74) and (159, 60) coordinates from EMF to (1, 1) and (1, 2) for a PDF. So a set of lines was generated as shown in the left picture. To improve the results, we have stopped using the LPtoDP function. Now Polyline(To) function gives the correct results.</p>
<p style="text-align: right">Artem Golubnichenko</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/rounding-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF/A is a format for long-term preservation</title>
		<link>http://www.colorpilot.com/blog/pdfa-is-a-format-for-long-term-preservation/</link>
		<comments>http://www.colorpilot.com/blog/pdfa-is-a-format-for-long-term-preservation/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 05:28:31 +0000</pubDate>
		<dc:creator>Artem Golubnichenko</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=45</guid>
		<description><![CDATA[PDF/A is a electronic document file format for long-term preservation. Standards to address the growing need to maintain information in electronic documents over archival time spans. The feature-rich nature of PDF can create difficulties in preserving information over the long-term, and some useful features of the PDF file format are incompatible with the demands of [...]]]></description>
			<content:encoded><![CDATA[<p>PDF/A is a electronic document file format for long-term preservation. Standards to address the growing need to maintain information in electronic documents over archival time spans. The feature-rich nature of PDF can create difficulties in preserving information over the long-term, and some useful features of the PDF file format are incompatible with the demands of long-term preservation. For example, PDF documents are not necessarily self-contained, drawing on system fonts and other content stored external to the original file. As time passes, and especially as technology changes, these external connections can be broken, and the dependencies cause information to be lost.<br />
The PDF/A-1 standard is based on Adobe’s PDF Reference 1.4, and specifies how to use a subset of PDF components to develop software that creates, renders and otherwise process a flavor of PDF that is more suitable for archival preservation than traditional PDF. PDF/A-1 aims to preserve the static visual appearance of electronic documents over time and also aims to support future access and future migration needs by providing frameworks for: 1) embedding metadata about electronic documents, and 2) defining the logical structure and semantic properties of electronic documents. The result is a file format, based on PDF 1.4 that is more suitable for long term preservation.<br />
PDF/A-1 files must include:</p>
<p>* Embedded fonts<br />
* Device-independent color<br />
* XMP metadata</p>
<p>The PDF Creator Pilot has property gets or sets the value indicating whether to produce a PDF/A compatible output file. There is <a href="http://www.colorpilot.com/pdfcreatorpilotmanual/IPDFDocument4/ProducePDFA.html">ProducePDFA</a>. Setting ProducePDFA to VARIANT_TRUE means that the output PDF file will be built compatible to the PDF/A standard. You should set this property before any text or graphics output.<br />
If you need long-term preservation documents, use the PDF/A docs. With PDF Creator Pilot you can create such documents easy.</p>
<p style="text-align: right">Artem Golubnichenko</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/pdfa-is-a-format-for-long-term-preservation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New PDF to Image Converter from Two Pilots Company</title>
		<link>http://www.colorpilot.com/blog/new-pdf-to-image-converter-from-two-pilots-company/</link>
		<comments>http://www.colorpilot.com/blog/new-pdf-to-image-converter-from-two-pilots-company/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:44:55 +0000</pubDate>
		<dc:creator>Artem Golubnichenko</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Converter]]></category>
		<category><![CDATA[PDF Resterization]]></category>
		<category><![CDATA[PDF2Image]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=31</guid>
		<description><![CDATA[In the area of circulation of electronic documents, often we need to modify PDF documents into PNG or multipage TIFF images. Two Pilots, has just released a new converter called PDF2Image Pilot, a program for converting PDF files into high-quality BMP, EMF, GIF, JPEG, PNG, or TIFF images. (Multipage TIFF is supported as well.)
The PDF [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify">In the area of circulation of electronic documents, often we need to modify PDF documents into PNG or multipage TIFF images. Two Pilots, has just released a new converter called <a href="http://colorpilot.com/pdf2image.html" target="_blank">PDF2Image Pilot</a>, a program for converting PDF files into high-quality BMP, EMF, GIF, JPEG, PNG, or TIFF images. (Multipage TIFF is supported as well.)</p>
<p style="text-align: justify">The PDF to Image converter is based on <a href="http://www.colorpilot.com/pdf-rasterizer.html" target="_blank">PDF Rasterization Pilot</a>. <a href="http://www.colorpilot.com/pdf-rasterizer.html" target="_blank">PDF Rasterization Pilot</a> is a library for developers. Using this tool, developers can add to their products such features as export PDF to graphic format and output PDF to a device context (display or printer).</p>
<p style="text-align: justify">The new <a href="http://colorpilot.com/pdf2image.html" target="_blank">PDF2Image Pilot</a> uses only <a href="http://www.colorpilot.com/pdf-rasterizer.html" target="_blank">PDF Rasterization Pilot</a> for saving PDF into graphic files and outputting PDF content to a preview window. In <a href="http://colorpilot.com/pdf2image.html" target="_blank">PDF2Image Pilot</a>, we tried to connect the features of the <a href="http://www.colorpilot.com/pdf-rasterizer.html" target="_blank">PDF Rasterization</a> library and our many years experience in the development of easy and useful interfaces. We hope that <a href="http://colorpilot.com/pdf2image.html" target="_blank">PDF2Image</a> converter helps you to solve your tasks. We await your responses and proposals!</p>
<p style="text-align: right">Artem Golubnichenko</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/new-pdf-to-image-converter-from-two-pilots-company/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Layers (Optional Content Groups)</title>
		<link>http://www.colorpilot.com/blog/layers-optional-content-groups/</link>
		<comments>http://www.colorpilot.com/blog/layers-optional-content-groups/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 13:00:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[For software developers]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/?p=26</guid>
		<description><![CDATA[Layers or as they are more formally known Optional Content Groups (OCG) is representing a collection of graphics that can be made visible or invisible dynamically by users of viewer applications. (This ca­pability is useful in items such as CAD drawings, maps, and multi-language documents) With the introduction of PDF version 1.5 came the concept [...]]]></description>
			<content:encoded><![CDATA[<p>Layers or as they are more formally known Optional Content Groups (OCG) is representing a collection of graphics that can be made visible or invisible dynamically by users of viewer applications. (This ca­pability is useful in items such as CAD drawings, maps, and multi-language documents) With the introduction of PDF version 1.5 came the concept of Layers. Form and image and annotations can be made optional too.</p>
<p><span id="more-26"></span>A group is assigned a state, which is either ON or OFF. States can be set programmatically or through the viewer user interface to change the visibility of content. In the typical case, content belonging to a group is visible when the group is ON and invisible when it is OFF. When a piece of optional content in a PDF file is determined to be hidden, the content is not drawn.</p>
<p>You may see all layers in PDF document on Layers tab. (for Adobe Reader) Go into the &#8220;View&#8221; menu and select &#8220;Navigation Tabs&#8221; and then choose &#8220;Layers&#8221;.</p>
<p>So this gives us an instruction on how to create Layered PDFs within PDF Creator Pilot.  In our example we&#8217;ve created a PDF with several layers. (example for VBScript)</p>
<p><code>' create pdf library object<br />
Set PDF = CreateObject("PDFCreatorPilot.PDFDocument4")</code></p>
<p><code>' initialize PDF Engine<br />
PDF.SetLicenseData "demo@demo", "demo"</code></p>
<p><code>' set document title<br />
PDF.SetTitle "PDF with Layers", 1</p>
<p>'  For creating PDF with layers, we need create named content group. For every layer –<br />
' individual group:<br />
groupIndex = PDF.CreateContentGroup("Text Optional Content Group")</p>
<p>' Then you need to add content in layer. Sections of content in the PDF document can be made<br />
' optional by enclosing between the marked-content operators BeginMarkedContent and<br />
' EndMarkedContent. Between this operators you may draw graphic shapes, images, forms,<br />
' annotations or text:</p>
<p>'  Text content group example:<br />
PDF.BeginMarkedContent groupIndex<br />
PDF.ShowTextAt 10, 40, "Hello, optional content group!"<br />
PDF.EndMarkedContent</p>
<p>'  Image content group example:<br />
img = PDF.AddImageFromFile(L"image.jpg")<br />
PDF.BeginMarkedContent groupIndex<br />
PDF.ShowImage img, 150, 100<br />
PDF.EndMarkedContent</p>
<p>'  Annotation content group example:<br />
PDF.BeginMarkedContent groupIndex<br />
PDF.AddUnicodeTextAnnotation 10, 10, "Title", "Some text goes here..."<br />
PDF.EndMarkedContent</p>
<p>'   You may combine content of this group. For example,<br />
PDF.BeginMarkedContent groupIndex<br />
PDF.ShowTextAt 10, 40, "Hello, optional content group!"<br />
PDF.AddEditBox 50, 210, 150, 250, "edt1"<br />
PDF.SetColor 0.0, 0.9f, 0.0, 0.0<br />
PDF.ResetPath<br />
PDF.DrawEllipse 100, 200, 200, 300<br />
PDF.FillAndStroke<br />
PDF.EndMarkedContent</p>
<p>' finalize document generation<br />
PDF.SaveToFile "PdfWithContentGroups.pdf", true</p>
<p></code></p>
<p><code>' disconnect from library<br />
Set PDF = Nothing</code></p>
<p>Hopefully from the example code and the example PDFs you should see how useful Layers can be.</p>
<p>Here you can download examples of PDF documents created by PDF Creator Pilot:<br />
<a href="http://www.colorpilot.com/downloads/ContentGroupsExample.pdf">http://www.colorpilot.com/downloads/ContentGroupsExample.pdf</a><br />
<a href="http://www.colorpilot.com/downloads/ContentGroupsExample_SourceCode.zip">http://www.colorpilot.comdownloads/ContentGroupsExample_SourceCode.zip</a></p>
<p style="text-align: right;">Artem Golubnichenko<br />
Project Manager of <a href="http://www.colorpilot.com/emfprinterpilot.html">Virtual Printer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/layers-optional-content-groups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF Creator Project News</title>
		<link>http://www.colorpilot.com/blog/pdf-creator-project-news/</link>
		<comments>http://www.colorpilot.com/blog/pdf-creator-project-news/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 18:59:46 +0000</pubDate>
		<dc:creator>Vitaliy Shibaev</dc:creator>
				<category><![CDATA[For software developers]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/pdf-creator-project-news/</guid>
		<description><![CDATA[Hello,
Today I want to talk about important improvements in the current version of the PDF Creator Pilot Library.
It was always one of the weakest things about the Library &#8211; it demanded huge amounts of memory to work with larger documents. Quite often clients were not able to create a document consisting of more than 100 [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Today I want to talk about important improvements in the current version of the PDF Creator Pilot Library.</p>
<p>It was always one of the weakest things about the Library &#8211; it demanded huge amounts of memory to work with larger documents. Quite often clients were not able to create a document consisting of more than 100 pages, because they did not have enough memory. In this version, we have managed to open up a bottleneck, which helped us significantly reduce memory requirements. In short, if a page contains a lot of graphics, it also contains a lot of page operation commands. Keeping all these commands in memory was the bottleneck. We cached the commands into a temporary file, and that solved the problem.</p>
<p>
<span id="more-25"></span></p>
<p>The other improvement concerns conversion of EMF files to PDF files. We&#8217;ve improved the processing of paths and clipping regions. This was no trivial task, because the path processing toolset of the PDF format isn&#8217;t as rich as required by GDI. Clipping regions are the worst supported; there are no other region operations in a PDF except intersection. To adequately process an EMF, we had to support all operations defined in Set theory. For a long time the problem remained unsolved, however we have now left the problem behind us. Now these kinds of EMF files converted correctly.</p>
<p>This last bit of news should be of interest to those who use &#8220;non-standard&#8221; versions of the Library, such as the 64-bit variant or the static variant (which is for C++ only). We&#8217;ve found that the x64 build failed to convert EMF files, and the static library refused to work from VS2005. All of these problems have also been fixed.</p>
<p>Here are the current builds:</p>
<p><a href="http://www.colorpilot.com/~builds/PDFCreatorPilot4_1_2492.zip">http://www.colorpilot.com/~builds/PDFCreatorPilot4_1_2492.zip</a><br /><a href="http://www.colorpilot.com/~builds/PDFCreatorPilot4_1_2492_x64.zip">http://www.colorpilot.com/~builds/PDFCreatorPilot4_1_2492_x64.zip</a><br /><a href="http://www.colorpilot.com/~builds/PDFCreatorPilot4_1_2492_static.zip">http://www.colorpilot.com/~builds/PDFCreatorPilot4_1_2492_static.zip</a> (18 Mb, contains both the Debug and the Release versions)</p>
<p>In the next release, we plan both to improve processing of TIFF files and to add support for CMYK TIFFs.</p>
<p>Vitaly Shibaev<br />Developer of <a href="http://www.colorpilot.com/pdflibrary.html">PDF Library</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/pdf-creator-project-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>COM: The First Steps</title>
		<link>http://www.colorpilot.com/blog/com-the-first-steps/</link>
		<comments>http://www.colorpilot.com/blog/com-the-first-steps/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:48:32 +0000</pubDate>
		<dc:creator>max.f</dc:creator>
				<category><![CDATA[For software developers]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/com-the-first-steps/</guid>
		<description><![CDATA[Let me show you the process of creating of a COM component with Visual Studio 2008 using ATL and C++.
First, let&#8217;s create a Visual C++/ATL project:


Click &#8220;OK&#8221; and then select &#8220;Allow merging of proxy/stub code&#8221;:

Click &#8220;Finish&#8221;. Studio creates a project for us. With the help of Solution Explorer, we can see the following files:

It&#8217;s just [...]]]></description>
			<content:encoded><![CDATA[<p>Let me show you the process of creating of a COM component with Visual Studio 2008 using ATL and C++.</p>
<p>First, let&#8217;s create a Visual C++/ATL project:</p>
<p><a rel="lightbox" href="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-001.png" title="com-001.png"><img border="0" width="200" src="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-001-tn.jpg" alt="com-001.png" height="133" /></a><br />
<span id="more-24"></span></p>
<p>Click &#8220;OK&#8221; and then select &#8220;Allow merging of proxy/stub code&#8221;:</p>
<p><a rel="lightbox" href="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-002.png" title="com-002.png"><img border="0" width="200" src="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-002-tn.jpg" alt="com-002.png" height="168" /></a></p>
<p>Click &#8220;Finish&#8221;. Studio creates a project for us. With the help of Solution Explorer, we can see the following files:</p>
<p><a rel="lightbox" href="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-003.png" title="com-003.png"><img border="0" width="125" src="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-003-tn.jpg" alt="com-003.png" height="200" /></a></p>
<p>It&#8217;s just a shell. If we would compile and build the project at this stage, there would be a DLL-file without a single component.</p>
<p>To add a component to our project, let&#8217;s review the &#8220;FirstCOM.idl&#8221; file. It&#8217;s the file that contains the definitions of the interfaces.</p>
<p>So far, this is all that file contains (comments have been removed):</p>
<blockquote><p><code>import "oaidl.idl";<br />
import "ocidl.idl";<br />
[<br />
    uuid(0652E0B7-4360-4542-8D22-8F52940AEFCE),<br />
    version(1.0),<br />
    helpstring("FirstCOM 1.0 Type Library")<br />
]<br />
library FirstCOMLib<br />
{<br />
    importlib("stdole2.tlb");<br />
};</code></p></blockquote>
<p>This means that there is a library of types named FirstCOM that lacks the types. There are two attributes, though, &#8220;version&#8221; that holds the version of our library and &#8220;helpstring&#8221; that should hold a description of the library.</p>
<p>Let&#8217;s add a component. Select &#8220;Add-&gt;Class&#8221; from the context menu:</p>
<p><a rel="lightbox" href="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-005.png" title="com-005.png"><img border="0" width="176" src="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-005-tn.jpg" alt="com-005.png" height="200" /></a></p>
<p>Select &#8220;ATL Simple Object&#8221;:</p>
<p><a rel="lightbox" href="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-006.png" title="com-006.png"><img border="0" width="200" src="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/com-006-tn.jpg" alt="com-006.png" height="119" /></a></p>
<p>Now let&#8217;s enter the class information, as illustrated below:</p>
<p><a rel="lightbox" href="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/122604845568-com-007.png" title="com_007.png"><img border="0" width="200" src="http://www.colorpilot.com/blog/wp-content/uploads/2008/11/122604845568-com-007-tn.jpg" alt="com_007.png" height="168" /></a></p>
<p>Click &#8220;Finish&#8221;. Studio will create all the necessary files and add the necessary constants to the resource files. &#8220;FirstCOM.idl&#8221; should now look like this:</p>
<blockquote><p><code>import "oaidl.idl";<br />
import "ocidl.idl";<br />
[<br />
    object,<br />
    uuid(5F9CB782-BDE1-48E3-91CC-E8EC0280EFA0),<br />
    dual,<br />
    nonextensible,<br />
    helpstring("IFirstCOMClass Interface"),<br />
    pointer_default(unique)<br />
]<br />
interface IFirstCOMClass : IDispatch<br />
{<br />
};<br />
[<br />
    uuid(FD0B5C1A-6E02-4EFA-958B-046A0AD17381),<br />
    version(1.0),<br />
    helpstring("FirstCOM 1.0 Type Library")<br />
]<br />
library FirstCOMLib<br />
{<br />
    importlib("stdole2.tlb");<br />
    [<br />
        uuid(61A52F01-320D-41E4-B5F2-A59C6E220292),<br />
        helpstring("FirstCOMClass Class")<br />
    ]<br />
    coclass FirstCOMClass<br />
    {<br />
        [default] interface IFirstCOMClass;<br />
    };<br />
};</code></p></blockquote>
<p>We have added a description of a class (component) with some interface IFirstCOMClass to the description section of the library (library FirstCOMLib{&#8230;}). The definition of that interface has been automatically added at the beginning of the file.</p>
<p>Now we have created a component (class) FirstCOMClass and declared its interface (IFirstCOMClass). This interface will be used to provide access to our component.</p>
<p>Now let&#8217;s define methods and functions for our component. For instance, let&#8217;s add two methods, one that would return the sum of two numbers and one to return the length of a string. Also, we&#8217;ll add a property &#8220;Author&#8221; to allow read and write access. To do that, in the section</p>
<blockquote><p><code>interface IFirstCOMClass : IDispatch<br />
{<br />
};</code></p></blockquote>
<p>we should add definitions of our methods and properties:</p>
<blockquote><p><code>interface IFirstCOMClass : IDispatch<br />
{<br />
    [id(1)] HRESULT CalcSumm([in] LONG lParam1, [in] LONG lParam2,<br />
        [out, retval] LONG* retVal);<br />
    [id(2)] HRESULT GetStringLen([in] BSTR strParam,<br />
        [out, retval] LONG* retVal);<br />
   <br />
    [propget, id(3)]<br />
    HRESULT Author([out, retval] BSTR* retVal);<br />
    [propput, id(3)]<br />
    HRESULT Author(BSTR strValue);<br />
};</code></p></blockquote>
<p>Where:<br />
[id(N)] &#8211; defines the identification number of a method or a property (This number must be unique.);<br />
[in] denotes an input parameter;<br />
[out, retval] &#8211; denotes an output parameter.Important: The read properties and the write properties should have the same name and identification (id).</p>
<p>Now let&#8217;s declare the methods described in CFirstCOMClass. Locate the &#8220;CFirstCOMClass.h&#8221; and open it. There is this:</p>
<blockquote><p><code>class ATL_NO_VTABLE CFirstCOMClass :<br />
    public CComObjectRootEx&lt;CComSingleThreadModel&gt;,<br />
    public CComCoClass&lt;CFirstCOMClass, &amp;CLSID_FirstCOMClass&gt;,<br />
    public IDispatchImpl&lt;IFirstCOMClass, &amp;IID_IFirstCOMClass,<br />
        &amp;LIBID_FirstCOMLib, /*wMajor =*/ 1, /*wMinor =*/ 0&gt;</code></p></blockquote>
<p>This declaration allows the compiler to bind the COM class and its interface with a real C++ class.</p>
<p>Add this to the public section:</p>
<blockquote><p><code>public:<br />
    STDMETHOD(CalcSumm)(LONG lParam1, LONG lParam2, VARIANT_BOOL* retVal);<br />
    STDMETHOD(GetStringLen)(BSTR strParam, VARIANT_BOOL* retVal;<br />
    STDMETHOD(get_Author)(BSTR* sVal);<br />
    STDMETHOD(put_Author)(BSTR sVal);</code></p></blockquote>
<p>It is recommended to declare a constructor and a destructor and then move their implementation into file &#8220;CFirstCOMClass.cpp&#8221;.</p>
<p><strong>Important:</strong> The read and write accessor methods of the property &#8220;Author&#8221; must begin with the &#8220;get_&#8221; and &#8220;put_&#8221; prefixes.</p>
<p>Then we create the private section. Here we will hold the value of the &#8220;Author&#8221; property.</p>
<blockquote><p><code>private:<br />
    CComBSTR m_author;</code></p></blockquote>
<p>In &#8220;CFirstCOMClass.cpp&#8221;:</p>
<blockquote><p><code>// FirstCOMClass.cpp : Implementation of CFirstCOMClass<br />
#include "stdafx.h"<br />
#include "FirstCOMClass.h" // CFirstCOMClass</code><code> </code><code>CFirstCOMClass::CFirstCOMClass()<br />
{<br />
    // initial value of the property Author<br />
    m_author = OLESTR("Vasya");<br />
}</code><code>CFirstCOMClass::~CFirstCOMClass()<br />
{<br />
}</p>
<p>STDMETHODIMP CFirstCOMClass::CalcSumm(LONG lParam1, LONG lParam2, LONG* retVal)<br />
{<br />
    // if pointer is invalid - return error<br />
    if (!retVal)<br />
        return S_FALSE;<br />
    *retVal = lParam1 + lParam2;</p>
<p>    // no errors - return OK<br />
    return S_OK;<br />
}</p>
<p>STDMETHODIMP CFirstCOMClass::GetStringLen(BSTR strParam, LONG* retVal)<br />
{<br />
    // if pointer is invalid - return error<br />
    if (!retVal)<br />
        return S_FALSE;</p>
<p>    CComBSTR str(strParam);<br />
    *retVal = (LONG)str.Length();</p>
<p>    // no errors - return OK<br />
    return S_OK;<br />
}</p>
<p>STDMETHODIMP CFirstCOMClass::get_Author(BSTR* retVal)<br />
{<br />
    // if pointer is invalid - return error<br />
    if (!retVal)<br />
        return S_FALSE;</p>
<p>    // don't forget to allocate memory for the result string<br />
    *retVal = SysAllocString((BSTR)m_author);</p>
<p>    // no errors - return OK<br />
    return S_OK;<br />
}</p>
<p>STDMETHODIMP CFirstCOMClass::put_Author(BSTR newVal)<br />
{<br />
    CComBSTR newAuthor(newVal);<br />
    m_author = newAuthor;</p>
<p>    // no errors - return OK<br />
    return S_OK;<br />
}</p>
<p></code></p></blockquote>
<p>Our COM library is almost ready. We have created the library itself, a class, and its interface. We&#8217;ve also added the implementation of the interface. It would be great to know the name of our COM library and its class. Their names are in the &#8220;FirstCOMClass.rgs&#8221;. Open it and find &#8220;VersionIndependentProgID&#8221;:</p>
<blockquote><p><code>VersionIndependentProgID = s 'FirstCOM.FirstCOMClass'</code></p></blockquote>
<p>The name of our library is FirstCOM, and the class is &#8220;FirstCOM.FirstCOMClass&#8221;.</p>
<p>When we add more classes, for each there will be an &#8220;.rgs&#8221; file with the following text:</p>
<blockquote><p><code>VersionIndependentProgID = s 'FirstCOM._class_name_'</code></p></blockquote>
<p>After building the project, in the &#8220;Debug&#8221; or &#8220;Release&#8221; folder we will find &#8220;FirstCOM.dll&#8221;, our COM library. To use it from another computer, it must be registered in its operating system. That can be done with an installer or with this command:</p>
<blockquote><p><code>regsvr32 FirstCOM.dll</code></p></blockquote>
<p>Now, let&#8217;s check whether it works. Create a text file &#8220;test.vbs&#8221; and copy the following Visual Basic Script into it:</p>
<blockquote><p><code>' create COM object, use library name and class name<br />
Set comObj = CreateObject("FirstCOM.FirstCOMClass")</code><code> </code><code>' test CalcSumm method<br />
res = comObj.CalcSumm(1, 2)<br />
WScript.Echo "1 + 2 = " &amp; res</code><code>' test GetStringLen method<br />
res = comObj.GetStringLen("QwertY123")<br />
WScript.Echo "Len = " &amp; res</p>
<p>' read property Author<br />
auth = comObj.Author<br />
WScript.Echo "Author = " &amp; auth</p>
<p>' read property Author<br />
comObj.Author = "Petya"<br />
auth = comObj.Author<br />
WScript.Echo "Author = " &amp; auth</p>
<p>' cleanup<br />
Set comObj = Nothing</p>
<p></code></p></blockquote>
<p>Save and launch the file this way:</p>
<blockquote><p><code>wscript.exe test.vbs</code></p></blockquote>
<p>or this:</p>
<blockquote><p><code>cscript.exe test.vbs</code></p></blockquote>
<p>If we did everything correctly, we should see the results of our tests.</p>
<p>We could execute it from PHP:</p>
<blockquote><p><code>&lt;?php<br />
// create COM object, use library name and class name<br />
$comObj = new COM("FirstCOM.FirstCOMClass") or die("Can't create COM.");</code><code> </code><code>// test CalcSumm method<br />
$res = $comObj.CalcSumm(1, 2);<br />
echo("1 + 2 = " . $res);</code><code>// test GetStringLen method<br />
$res = $comObj.GetStringLen("QwertY123");<br />
echo("Len = " . $res);</p>
<p>// read property Author<br />
$auth = $comObj.Author;<br />
$echo("Author = " . $auth);</p>
<p>// read property Author<br />
$comObj.Author = "Petya";<br />
$auth = $comObj.Author;<br />
echo("Author = " . $auth);</p>
<p>// cleanup<br />
$comObj = null;<br />
?&gt;</p>
<p></code></p></blockquote>
<p>If you want to learn how to use COM from C/C++ and .NET, look <a href="http://www.colorpilot.com/pdfcreatorpilotmanual/How_to_create_a_new_PDF_document_4.html">here</a>.</p>
<p>You can download the source of the COM library <a href="///C:/Downloads/src">here</a>.</p>
<p align="right">Max Filimonov.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/com-the-first-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF Creator &#8211; about project and development process</title>
		<link>http://www.colorpilot.com/blog/pdf-creator-about-project-and-development-process/</link>
		<comments>http://www.colorpilot.com/blog/pdf-creator-about-project-and-development-process/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 05:57:51 +0000</pubDate>
		<dc:creator>Vitaliy Shibaev</dc:creator>
				<category><![CDATA[For software developers]]></category>

		<guid isPermaLink="false">http://www.colorpilot.com/blog/pdf-creator-about-project-and-development-process/</guid>
		<description><![CDATA[Hi,
In this article I describe the organization of the PDF Creator project and the tools that we use to develop and promote the product.
Development Tools
1. Subversion (SVN) Control
The life of a programmer would be unbearable without a source control manager  . As of this writing, we have executed 2387 commits in the PDF Creator [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
In this article I describe the organization of the PDF Creator project and the tools that we use to develop and promote the product.</p>
<p align="center"><strong>Development Tools</strong></p>
<p><strong>1. Subversion (SVN) Control</strong></p>
<p>The life of a programmer would be unbearable without a source control manager <img src='http://www.colorpilot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . As of this writing, we have executed 2387 commits in the PDF Creator project using the Tortoise SVN, (<a href="http://tortoisesvn.tigris.org/">http://tortoisesvn.tigris.org/</a>). Since every mistake would cost a lot, we try to follow this rule – one that we would recommend to everyone: Always commit smaller portions of the code. Every commit must correspond to a single task!</p>
<p>This way it is (a) easier to find an error during rollbacks (every commit changes a small amount of source code), (b) often easy to discover an error before the commit just by looking at it, and (c) easier for colleagues to be aware of the changes in the source code, since all they have to do is read the comments and look at the smaller portions of the code.</p>
<p>Of course, this is not possible in all cases, and sometimes we do have to perform huge commits. Still this is a rule worth following. After all, it is one of the refactoring rules: Change smaller portions of the code, preserving its workability between sessions.</p>
<p>Two more source-control rules:</p>
<ol>
<li>There must always be two versions in the SVN – a version that compiles and a workable version. It is easy to create code that compiles, but the real aim is its correctness.</li>
<li>Text comments should be supplied to every commit. This is also a good way to check whether the commit implements only a single task. If a comment describes several targets instead of just one, the rule has been violaled.</li>
</ol>
<p><strong>2. Bug Tracker</strong></p>
<p>We use Mantis (<a href="http://www.mantisbt.org/">http://www.mantisbt.org/</a>). PDF Creator is the base for a number of other products – converters, virtual printer, etc. (See <a href="http://www.colorpilot.com/developer.html">http://www.colorpilot.com/developer.html</a>) The number of its users is much higher than the count of those who purchased the base product. We needed to simplify communications between the developers and the users of the products.</p>
<p><span id="more-9"></span>To make the things clear for those who have never used a bug tracker, here is a sample of how it works. The virtual printer developers receive (from the users of their product) information about an incorrect conversion into a PDF. The Virtual Printer gets an EMF file from input, then our library converts it. The information from the user is used to create a &#8220;ticket&#8221; for the library developers. The ticket is accompanied by a description of the problem and the problematic EMF file. Then we investigate the degree of severity of the problem to find out how critical it is and appoint a specific developer to work on a fix. After the problem has been resolved, the ticket gets closed. Everybody concerned is notified and may keep an eye on what is going on.</p>
<p><strong>3. Technical Support</strong></p>
<p>To manage our correspondence with clients, we use RT (<a href="http://bestpractical.com/rt/">http://bestpractical.com/rt/</a>). We need the system for convenient storage of the archive, as well as assurance that every person who should read the messages does receive them.</p>
<p>Ideally, (2) and (3) might have been united into a single service, so that the clients were aware of their problem status. In the example above, the virtual printer user would keep an eye on developers’ correspondence concerning his problem. One such system that could help is FogBugz (<a href="http://fogcreek.com/FogBugz/">http://fogcreek.com/FogBugz/</a>).</p>
<p><strong>4. Technical Documentation</strong></p>
<p>Our internal technical documentation project, Squirrel (<a href="http://www.colorpilot.com/squirrel.html">http://www.colorpilot.com/squirrel.html</a>), isn&#8217;t widely known, however, it is publicly available. The program makes it easier to create a CHM-version of the documentation, integrates with SVN, and permits creation of the online documentation. See <a href="http://www.colorpilot.com/pdfcreatorpilotmanual/PDF_Creator_Pilot.html">http://www.colorpilot.com/pdfcreatorpilotmanual/PDF_Creator_Pilot.html</a> for the results of Squirrel’s work.</p>
<p><strong>5. Development Environment</strong></p>
<p>We use Visual Studio 2008, C++, and C#.</p>
<p><strong>6. Refactoring Tools</strong></p>
<p>There are no built-in tools for C++ refactoring in Visual Assist X (<a href="http://www.wholetomato.com/">http://www.wholetomato.com/</a>), so we have to use a third party plug-in for Visual Studio.</p>
<p><strong>7. Unit Tests in C++</strong></p>
<p>Here we use UnitTest++ (<a href="http://unittest-cpp.sourceforge.net/">http://unittest-cpp.sourceforge.net/</a>).</p>
<p><strong>8. Profiling Tools</strong></p>
<p>To diagnose memory leaks, we use <a href="http://www.colorpilot.com/~vit.shibaev/mmgr.zip">http://www.colorpilot.com/~vit.shibaev/mmgr.zip</a>. (I described that tool in one of my previous articles which you can find here: <a href="http://www.colorpilot.com/blog/about-pdf-creator-39/">http://www.colorpilot.com/blog/about-pdf-creator-39/</a>.) To control performance, we also use the Intel VTune, from time to time.</p>
<p align="center"><strong>Project Organization</strong></p>
<p>PDF Creator is a library for PDF processing: creation, reading, modification, text extraction, etc. Currently, the project exists as a solution with 18 sub-projects in Visual Studio 2008. There are five general types of sub-projects.</p>
<p><strong>1. The Library Core</strong></p>
<p>Here we define all the logic of PDF processing. This project is always in the process of modification. One of our old dreams (and still a dream today) is to make the core cross-platform. The biggest obstacle is the fact that EMF is a private Windows format. To make our dream come true, we should separate the conversion from the cross-platform part.</p>
<p>2<strong>. Client Interfaces</strong></p>
<p>Two of the projects implement the client interfaces. One of them implements the COM interface; the other one implements a static library. The COM interface delegates its tasks to the static library; the static library forwards them to the core. No code is duplicated.</p>
<p>The static library isn&#8217;t advertised on our site, however every client may receive it together with the COM version. The static library contains some undocumented features that allow users to get some additional information about a document. If you are a developer and your product is intended to view PDFs, these features may be very useful for you.</p>
<p><strong>3. Test Projects</strong></p>
<ol>
<li>Non-automated tests for the COM interface. A set of APIs that form and render PDF documents immediately after their launch.</li>
<li>Unit tests for the static library and the core. In addition to those described immediately above, the unit tests check the internal state of the classes, handle errors, etc.</li>
<li>Projects that check the EMF-conversion. The first one (written in WTL) converts the specified EMF file into a PDF. Its interafce is minimalistic, looking very much like our online service <a href="http://www.colorpilot.com/pdflibrary_convert-emf-to-pdf.html">http://www.colorpilot.com/pdflibrary_convert-emf-to-pdf.html</a>.<br />
The second one (written in C#) are a work in progress. However, it is already possible to convert all PDFs from a folder and to instantly review the results. This provides a significant speed increase during the testing process, which is especially great since we&#8217;ve got hundreds of test metafiles already.</li>
</ol>
<p><strong>4. Auxiliary Projects</strong></p>
<p>These include a font-processing library (that parses TrueType and Type1 fonts, works with encodings, and modifies the TrueType fonts), font installer, working with the keys, etc.</p>
<p><strong>5. Third Party Open-Source Products</strong></p>
<p>PDF is a complex format. It is based on many areas of science, multiple algorithms, and formats. It involves compression and encryption algorithms, various image and font formats, color spaces, etc. A big part of our implementation is based on open source projects with a free license, for instance, CxImage, ZLib, LibJPEG, Lcms, and UnitTest++.</p>
<p align="right">Vitaly Shibaev<br />
Developer of <a href="http://www.colorpilot.com/pdflibrary.html">PDF Library</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.colorpilot.com/blog/pdf-creator-about-project-and-development-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
