wPDF (英語版)
DelphiまたはC++BuilderのアプリケーションでPDFファイルを作成
WPCubed 社の製品
2002 年より日本国内にてComponentSourceで販売中。
価格:¥ 54,340 (税込)〜 バージョン: v5.x 更新日: Jan 13, 2025
DelphiまたはC++BuilderのアプリケーションでPDFファイルを作成
wPDFは、大半のWindows アプリケーションで一般的に利用されるコマンドに対して、すぐれた互換性を保って最適化されたPDFメーカーです。コンポーネントを単体で利用するか、あるいは WPTools を接続して、 wPDF が直ちに PDF ファイルを作成できます。wPDF WPTools 、 WPForm 、 QuickReport と HTMLView と互換性があります。このコンポーネントは直接の描画のために互換性がある「キャンバス」プロパティを提供します。
Overview
wPDF converts enhanced metafiles to PDF while preserving the vector and text information. This results in small PDF files which can be printed at high resolution, thus making wPDF superior to other solutions which convert embedded metafiles into bitmaps. wPDF supports the usual PDF features, including compression and 128 bit encryption and it was the first Delphi library to allow embedding of font subsets to reduce file size even further.
Code
The code needed for to create a PDF file is very similar to that needed for printing:
const Resolution = 72;
WPPDFPrinter1.BeginDoc; // Starts a new document
try
WPPDFPrinter1.StartPage( // start a page of a certain page
Round(8.5*Resolution), 5*Resolution, Resolution, Resolution, 0);
DrawPage(WPPDFPrinter1.Canvas); // subprocedure to draw to the TCanvas
WPPDFPrinter1.EndPage; // close the page
finally
WPPDFPrinter1.EndDoc; // close the document
end;
If you are using WPTools file creation can be done with just one line of code:
WPPDFExport1.Print;
Even though the export functions quickly, there's nothing missing from wPDF. Compression, encryption, embedded fonts, charsets (eastern European, Greek and Cyrillic) are all supported. Thumbnails can be created and you can add code to create outlines and hyperlinks. Graphics can be embedded using deflate or JPEG compression.