WPCubed GmbH
Wordprocessing and PDF components
The fully programmable word processing engine for deployment with end user applications (DLL, VB, .NET) and on ASP or ASP.NET servers for text, i.e. RTF and PDF creation. With Version 4 also 64 bit Windows servers are supported.
The powerful API makes it easy to
- load text (DocX, RTF, ANSI, HTML, UNICODE and MIME)
- process text, create tables, insert text and do mail merge
- generate text (PDF, DocX, RTF, ANSI, HTML, UNICODE and MIME)
- it also prints text (on paper)
- 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.
- With Version 4 a 32 bit and a 64 bit DLL are included.
- Also available: Optional reporting (The standard version already does mail-merge, with this extension also bands and groups can be used in the template)
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.
This means that using our RTF2PDF / TextDynamic server your windows www server can create PDF, HTML and RTF output like your desktop program. Do you need this functionality also for Linux? If yes, please drop us a line.
The demo can be downloaded here: Download the wPDFControl/RTF2PDF Demo
Read more in the TextDynamic/Server Online manual.
The underlying engine wPDF is widely used in thousands of applications world wide. Also combits popular reporting tool List & Label is using wPDF since 2003.
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.
if PDFControl1.StartEngine("c:tempwpPDFControlDLLwPDFControlDemo.dll", "LicenseName", "LicenseCode", 0) = true Then
PDFControl1.BeginDoc "c:temptest.pdf", 0
PDFControl1.ExecIntCommand 1000, 0
PDFControl1.ExecStrCommand 1002, "c:temptest.rtf"
PDFControl1.ExecIntCommand 1100, 0
PDFControl1.EndDoc
else
MsgBox "We were not able to load the PDF Engine DLL", 0, "Error!"
End if
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
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
.....
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();
;