You are here: TextDynamic Server / wRTF2PDF
Move back to: Products
Move to: ASP.NET Demo Online Manual License Upgrades [Order]
Common:

Search for:

TextDynamic Server / wRTF2PDF

The perfect tool for document and PDF creation

The fully programmable word processing engine for deployment with end user applications (DLL, VB, .NET) and on ASP or ASP.NET servers for text and PDF creation.

The powerful API makes it easy to

- load text (RTF, ANSI, HTML, UNICODE and MIME)
- process text, create tables, insert text and do mail merge
- generate text (PDF, RTF, ANSI, HTML, UNICODE and MIME)
New: it now also prints text (on paper)
New: A special mode to format tables more like a web browser (with cell auto sizing). This demo PDF file was created by RTF2PDF TextDynamic using the HTML to PDF conversion with our web site as input.
New: Optional reporting

RTF2PDF can be easily used with ASP or ASP.NET to create HTML or PDF response output. Since the API is so similar to the API of TextDynamic you can use almost the same code in your ASP page as you used for your desktop application.

The demo can be downloaded here: wPDFControl/RTF2PDF3 Demo DLL

Picture: RTF2PDF TestServer - www.rtf-net.com

wRTF2PDF - Programmable Word Processing Engine

Integrated word processing engine

Integrated PDF engine

Powerful programing API (.NET and COM)

TextDynamic + RTF2PDF / TextDynamic Server Manual

This is the HTML Version of the combined Manual and Reference which is provided as PDF and CMH file.
http://www.wpcubed.com/manuals/textdynamic/

Here you can download the RTF2PDF demo. It includes an ActiveX and .NET DLLs for the Framework 1.1, 2 and 3.5. wPDFControl can also be used in C++ directly. The demo works for 45 days.

Export RTF file using "Commands"

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

Export in VB6/VBS, using Interfaces (IWPMemo)

Private Sub Command1_Click()
 ' Initiate the OCX (if it is not already on the form)
 Set PDF = CreateObject('wPDF_X01.PDFControl')
 ' Start Engine, last param =LIC_CODE
 If PDF.StartEngine(DLLNAME.Text, "LIC_NAME", "LIC_KEY", 0) Then
   ' Load the file, TRUE would insert/append it
   If PDF.Memo.LoadFromFile(RTFFileName.Text, False, "AUTO") Then
     PDF.PDFCreator.PDFFile = Replace(RTFFileName.Text, ".rtf", ".pdf")
     ' Convert it
     ' VB6 does not let us call PDF.PDFCretor.Print so we use a command instead
     PDF.ExecIntCommand 1305, 0
     ' Finish PDF creation
   Else
      MsgBox "Cannot load RTF file " + RTFFileName.Text
   End If
   PDF.StopEngine
 Else
   MsgBox "Cannot load RTF2PDF Engine from " + DLLNAME.Text
 End If
End Sub

You can also add some code to replace some text and change page format

 
   If PDF.Memo.LoadFromFile(RTFFileName.Text, False, "AUTO") Then
     ' replace text
     PDF.Memo.TextCursor.ReplaceText "[NAME]", "Julian Ziersch", True, False, False, True
     ' Chage Pagesize
     PDF.Memo.PageSize.Landscape = True
   .....

Export in ASP.NET

RTF2PDF pdf = new RTF2PDF();
pdf.Memo.LoadFromFile("somtext.rtf", true, "AUTO");
pdf.PdfCreator.PDFFile = "memory";
// remove any output
Response.Clear();
// Add new header
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Type", "application/pdf");
// Set a file name which is displayed
Response.AddHeader("Content-Disposition","inline;filename=PortableDocument.pdf");
// Write the PDF data
Response.Clear();
// Finish
pdf.Dispose();