wRTF2PDF是一款功能強(qiáng)大的RTF控件,它可以將RTF 文件轉(zhuǎn)化為PDF 文件。DLL文件形式的wPDF 控件可以協(xié)助程序設(shè)計(jì)者在其應(yīng)用程序中添加對PDF文件的支持。他們都是在wPDF控件的基礎(chǔ)上發(fā)展而來的,wPDF是現(xiàn)在使用最廣的PDF控件,它曾在2000年的Delphi和C++編譯器市場上獲得過空前的成功。在wRTF2PDF控件中同時(shí)整合了用于在VC、VB以及VBS工程中創(chuàng)建PDF文檔的wPDF控件。在wRTF2PDF控件包中,包含了一個(gè)DLL文件形式的控件和一個(gè)可作為對象插入的OCX形式的控件。
Powerful RTF engine to convert RTF documents to PDF files. The wPDFControl DLL was created to make it easy for programmers to add PDF support to their applications. It is based on the popular PDF engine 'wPDF' which has been successful in the Delphi and C++Builder market since 2000. wRTF2PDF includes the wPDFControl which lets you create PDF files from your VC, VB or VBS projects. wPDFControl comes as a DLL, and with an OCX which acts as an optional interface.
wRTF2PDF控件包含了wPDF控件所有的功能,同時(shí)包含了強(qiáng)大的RTF開發(fā)功能,可以將RTF 文件轉(zhuǎn)化為PDF 文件。因?yàn)镈LL形式的wRTF2PDF控件要比同類型的wPDF控件要大,因此購買wRTF2PDF控件的用戶可以同時(shí)獲得這兩個(gè)DLL控件,并且還將同時(shí)獲得可用于這兩個(gè)控件的解密匙。

通過這個(gè)強(qiáng)大的DLL控件,您可以在您的應(yīng)用程序中直接創(chuàng)建具備完整功能PDF文件。
wRTF2PDF的ActiveX控件只用于在VB語言中使用wRTF2PDF DLL的情況。
wRTF2PDF的DLL控件和OCX控件在創(chuàng)建PDF文件的時(shí)候,所提供的接口程序功能都非常強(qiáng)大,包括鏈接,分級顯示,縮略圖,圖形顯示等功能。您還可以從與常用圖像編碼相兼容的圖像處理設(shè)備(比如數(shù)碼相機(jī))中,直接獲取圖像信息創(chuàng)建PDF文件,而不需要將其轉(zhuǎn)化為常用圖像編碼。
wRTF2PDF控件同時(shí)支持命令行參數(shù)。
在我們所提供的wPDF控件包和wRTF2PDF控件包中都包含了支持.NET的控件形式,因此您可以在任意一個(gè)自己喜歡的.NET語言中,很方便地使用這些控件所提供的強(qiáng)大功能。wPDF控件不僅僅提供了PDF文檔所具有的工具和事件功能,它還包含了.NET語言的功能特性,比如用于圖形繪制的“繪圖”對象等。相關(guān)信息請查閱.NET語言的聯(lián)機(jī)說明手冊。
如果您要在VB語言中使用wRTF2PDF控件,您必須先將wRTF2PDF OCX的控件庫wPDF_X01添加到您的工具箱內(nèi),然后您才可以在窗體中添加一個(gè)PDF控件對象。
您可以在源程序中添加如下語句,用來導(dǎo)出一個(gè)RTF文件:
If PDFControl1.StartEngine("c:\wpPDFControl\DLL\wPDFControlDemo.dll", "LicenseName", "LicenseCode", 0) = True Then
PDFControl1.BeginDoc "c:\test.pdf", 0
PDFControl1.ExecIntCommand 1000, 0
PDFControl1.ExecStrCommand 1002, "c:\test.rtf"
PDFControl1.ExecIntCommand 1100, 0
PDFControl1.EndDoc
Else
MsgBox "We were not able to load the PDF Engine DLL", 0, "Error!"
End If
需要注意的是:在執(zhí)行上述語句之前,您必須先執(zhí)行StartEngine過程,并且要設(shè)定PDF DLL控件的文件路徑。如果您的電腦系統(tǒng)中存在多個(gè)不同的PDF文件打開工具,您也不必為軟件沖突而擔(dān)心,我們可以按您的要求定做相應(yīng)的DLL控件。
wRTF2PDF does everything that wPDFControl can, and also includes a powerful RTF engine to convert RTF documents to PDF files. Since the wRTF2PDF DLL is quite a bit larger than the PDFControl DLL, the customers of RTF2PDF will receive both DLLs, plus a key which works for both.

Create full-featured PDF files directly from your application using this powerful DLL.
An ActiveX is included to simplify the usage of the DLL in VB.
The DLL and OCX provide you with a powerful API to create PDF files, including links, outlines, thumbnails, graphics, etc. You can use a graphic device handle (DC) which is compatible to the usual printing code. You don't need to convert the code you currently use for printing to create PDF files!
The RTF engine included can be utilized by using certain command codes.
Our PDF engines PDFControl and RTF2PDF now come with a native .NET wrapper class which makes it easy to use the power of these DLLs under your favorite .NET language. Not only does the wrapper publish the properties and events of the PDF engine, it also includes native .NET features such as a 'Graphics' object for your drawing code. Please read the online manual of the .NET wrapper
To use this DLL in VB you have to add the OCX library wPDF_X01 to your toolbox.Then you can create one PDFControl object on your form.
It can be then used like this to export a RTF file:
If PDFControl1.StartEngine("c:\wpPDFControl\DLL\wPDFControlDemo.dll", "LicenseName", "LicenseCode", 0) = True Then
PDFControl1.BeginDoc "c:\test.pdf", 0
PDFControl1.ExecIntCommand 1000, 0
PDFControl1.ExecStrCommand 1002, "c:\test.rtf"
PDFControl1.ExecIntCommand 1100, 0
PDFControl1.EndDoc
Else
MsgBox "We were not able to load the PDF Engine DLL", 0, "Error!"
End If
Note that you have to execute StartEngine and set the path of the PDF DLL. This way it is possible to have different PDF engines on your system, so there is no need to worry about a version conflict. We are also able to customize the DLL for you.