New Version 17!
DOC to PDF Converter offers a simple and hassle free method of converting from MS Word DOC or DOCX formats to PDF format within your application. You will make just one function call to do the conversion.
No other external components or programs are need when you use this converter. The converter includes a powerful DOC/DOCX data parser used by our TE Edit Control product. It also includes a robust PDF Generator used by our WinPDF product. This converter combines the functionality of TE Edit Control and WinPDF to offer a cost efficient, feature-rich and robust translator.
DOC to PDF Conversion supports the following features:
Code Output: The generated PDF code can be written to a disk file or it can be retrieved in a memory buffer.
Programming Interface: Your application simply uses function calls to do the conversion. The Win32 and Win64 versions include the function and constant declaration files for C/C++, Visual Basic and Delphi. The product is usable in any environment which allows for calling simple DLL functions.
The .NET version of this product is written using pure C# managed code. The .NET version can also be used within an ASP.NET server application.
using SubSystems.WP; // set the namespace
// Convert doc/docx file to pdf file
void ConvertFile(string DocInputFile, string PdfOutputFile)
{
Wpn wp = new Wpn(); // Create the conversion object
wp.InWebServer = true; // set to true when hosting the
// convert doc/docx to pdf
wp.WpsConvertFile(DocInputFile, PdfOutputFile);
}
// Convert a byte array containing doc/docx to pdf
byte[] ConvertBuffer(byte[] DocInputBytes)
{
Wpn wp = new Wpn(); // Create the conversion object
wp.InWebServer = true; // set to true when hosting the
string PdfString = wp.WpsConvertBuffer(DocInputBytes);
return wp.WpsStrToBytes(PdfString); // return pdf bytes
}
Imports SubSystems.WP ' set the name space
' Example of converting from a DOC/DOCX file to PDF
Sub ConvertFile(ByVal DocInputFile As String, ByVal PdfOutputFile As String)
Dim result As Boolean
Dim wp As Wpn
wp = New Wpn
result = wp.WpsConvertFile(DocInputFile, PdfOutputFile)
End Sub
' Example of converting from a byte array containing
' doc/docx to PDF
Function ConvertBuffer(ByVal DocInputBytes As Byte()) As Byte()
Dim wp As Wpn
Dim PdfString As String
wp = New Wpn
PdfString = wp.WpsConvertBuffer(DocInputBytes)
ConvertBuffer = wp.WpsStrToBytes(PdfString)
End Function
using SubSystems.WP; // set the namespace
Wpn wp = new Wpn();
wp.InWebServer = true;
// set WebFolder property to a folder with read/write access
wp.WebFolder = "c:\\inetpub\\wwwroot\\myproject";
byte[] DocxBytes = wp.WpsFileToBytes(Server.MapPath("myfile.docx"));
Response.Clear();
Response.Charset = "";
Response.ContentType = "application/pdf";
string strFileName = "test" + ".pdf";
Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
string pdfString = wp.WpsConvertBuffer(DocxBytes);
Response.BinaryWrite(wp.WpsStrToBytes(pdfString));
Response.Flush();
Response.Close();
Response.End();
#include "wps.h" // includes function definition for the wps32.dll file
// Convert doc/docx file to the pdf file
BOOL ConvertFile(LPSTR InputDocFile, LPSTR OutputPdfFile)
{
BOOL result;
DWORD id;
id=WpsNewSession(); // begin a conversion session
result=WpsConvertFile(id,InputDocFile,OutputPdfFile); // Convert to pdf
WpsEndSession(id); // end conversion session
return result;
}
// Convert a BYTE buffer containing doc/docx to pdf
// pInputDocData: buffer containing the doc/docx to covert
// DocDataSize: size of the doc/docx data in the given buffer
// pOutSize: returns the byte size of the pdf data
// This function returns a global memory handle containing
// the converted pdf data.
HGLOBAL ConvertBuffer(LPBYTE pInputDocData, int DocDataSize, LPINT pOutSize)
{
HGLOBAL hMem=NULL;
DWORD id;
id=WpsNewSession(); // begin a conversion session
hMem=WpsConvertBuffer(id,pInputDocData,DocDataSize,pOutSize);
WpsEndSession(id); // end conversion session
return hMem;
}
' Include the wps.bas module in your project, then use one of the following
' functions to convert from doc/docx to pdf
' Example of converting from a DOC/DOCX file to PDF
Function ConvertFile(ByVal DocInputFile As String, ByVal PdfOutputFile As String) As Long
Dim result As Boolean
Dim id As Long
id = WpsNewSession() ' start a new conversion session
result = WpsConvertFile(id, DocInputFile, PdfOutputFile)
WpsEndSession (id) ' end conversion session
ConvertFile = result
End Function
' Example of converting from a string containing
' doc/docx to PDF
Function ConvertBuffer(ByVal DocInputBytes As String) As String
Dim id As Long
Dim OutString As String
Dim hMem As Long
Dim OutSize As Long
id = WpsNewSession() ' start a new conversion session
hMem = WpsConvertBuffer(id, DocInputBytes, Len(DocInputBytes), OutSize)
If (hMem <> 0) Then
OutString = Space$(OutSize + 1) ' allocate space for the output string
Call WpsHandleToStr(OutString, OutSize, hMem)
ConvertBuffer = OutString
End If
WpsEndSession (id) ' end conversion session
End Function
%@ LANGUAGE = "VBSCRIPT"%&
%
Option Explicit
Dim DocString
Dim PdfBytes
Dim obj
Set obj = Server.CreateObject("wpcc.converter")
call obj.SetFlags(1,obj.VAL_WPFLAG_RETURN_MSG_ID) ' quiet mode
DocString=""
DocString = obj.FileToString("c:\inetpub\wwwroot\DmoWpc\test.doc")
' read the test.docx file into a string
if len(DocString) > 0 then
PdfBytes = obj.ConvertDocToPdfBytes(CStr(DocString))
End If
Set obj = Nothing
%>
<html>
<head>
</head>
<body>
<%
Response.Clear()
Response.Charset = ""
Response.ContentType = "application/pdf"
Response.AddHeader "Content-Disposition","inline;
filename=" + "test.pdf"
Response.BinaryWrite(PdfBytes)
Response.Flush()
Response.End()
%>
</body>
</html>
New Features in Version 17
" I appreciate your help and attention to my problems..
This is probably why I have used your Tern control since 2000! "
Eric Gilbert
Black, Mann & Graham, L.L.P.
" We considered a few different options when looking into getting a text control package and ended up going with yours. We could not be happier with our decision. The impressive functionality of your control and the rich API support is really not available elsewhere. We have also been very impressed with your support. We had to go with another company for a component you don't offer and though their website was more flashy, they have consistently let us down. You on the other hand have always been responsive and professional with answering any questions or releasing any fixes. Based on experience, I don't know why anyone would ever choose one of your competitors over you! "
Carl Christensen
Software Developer ,Western Standard
Our rich text editor component can be used for these word processing applications: display rich text, edit rich text, insert, merge, or append rich text, mail-merge, modify rich text programmatically, format rich text, table and nested table processing, track changes, generate RTF reports, print RTF text, list processing, newspaper like columnar text processing, wrap rich text around pictures and graphics, convert rich text to pdf using WinPDF add-on, convert rich text to HTML using HTML Add-on, import doc and docx files, support Arabic, Hebrew, Chinese, and other languages, cloud based rich text processing for Windows and Mac operating systems, and all popular browsers including Mozilla FireFox and Google Chrome and Opera. TE Edit Control component can be used with C/C++, C, C++, C#, Win32, Win64, .NET, Visual Basic, VB6, ASP, ASP.NET, Delphi, Power Builder, Progress, and any environment that can interface with a DLL.
Please click here for a feature-by-feature detailed description.
|
DOC to PDF Converter for .NET C#/WinForm/ASP.NET, 32/64 Bit (ZIP FILE)
DOC to PDF Converter for Win32 DLL/ActiveX/MFC/C/C++/ASP (ZIP FILE)
DOC to PDF Converter for Win64 C/C++/MFC SDJ (ZIP FILE)
DOC to PDF Converter for .NET C#/WinForm/ASP.NET, 32/64 Bit (PDF FILE)
DOC to PDF Converter for Win32 DLL/ActiveX/MFC/C/C++/ASP (PDF FILE)
DOC to PDF Converter for Win64 C/C++/MFC SDJ (PDF FILE)
Since our components are targeted toward software developers, the installation is simple. Our component software is delivered in a zip file. To install, simply copy the content of the zip folder to an empty folder in your computer and then follow the instruction for the product usage.
Our software does not install itself, so you can be rest assured that your system is not affected by an automatic installation process.
Please click here to view the license agreement for the product. The license agreements for the other products are found on their respective page.
To Uninstall, simply delete all product files from the installation folder or any other folder where you might have copied the product files. For example, if you copied the content of the installation zip folder to a folder called c:\MyFolder, then select the contents of the MyFolder folder, and delete all files. If you have copied the DLLs to your project folder, then delete those DLL files as well.
Please Click Here to read about our Technical Support options.
The Server License allows you to develop and deploy Internet and server hosted applications using this product.
DOC to PDF Converter offers a simple and hassle free method of converting from MS Word DOC or DOCX formats to PDF format within your application. You will make just one function call to do the conversion.
No other external components or programs are need when you use this converter. The converter includes a powerful DOC/DOCX data parser used by our TE Edit Control product. It also includes a robust PDF Generator used by our WinPDF product. This converter combines the functionality of TE Edit Control and WinPDF to offer a cost efficient, feature-rich and robust translator.
DOC to PDF Conversion supports the following features:
Code Output: The generated PDF code can be written to a disk file or it can be retrieved in a memory buffer.
Programming Interface: Your application simply uses function calls to do the conversion. The Win32 and Win64 versions include the function and constant declaration files for C/C++, Visual Basic and Delphi. The product is usable in any environment which allows for calling simple DLL functions.
The .NET version of this product is written using pure C# managed code. The .NET version can also be used within an ASP.NET server application.
using SubSystems.WP; // set the namespace
// Convert doc/docx file to pdf file
void ConvertFile(string DocInputFile, string PdfOutputFile)
{
Wpn wp = new Wpn(); // Create the conversion object
wp.InWebServer = true; // set to true when hosting the
// convert doc/docx to pdf
wp.WpsConvertFile(DocInputFile, PdfOutputFile);
}
// Convert a byte array containing doc/docx to pdf
byte[] ConvertBuffer(byte[] DocInputBytes)
{
Wpn wp = new Wpn(); // Create the conversion object
wp.InWebServer = true; // set to true when hosting the
string PdfString = wp.WpsConvertBuffer(DocInputBytes);
return wp.WpsStrToBytes(PdfString); // return pdf bytes
}
Imports SubSystems.WP ' set the name space
' Example of converting from a DOC/DOCX file to PDF
Sub ConvertFile(ByVal DocInputFile As String, ByVal PdfOutputFile As String)
Dim result As Boolean
Dim wp As Wpn
wp = New Wpn
result = wp.WpsConvertFile(DocInputFile, PdfOutputFile)
End Sub
' Example of converting from a byte array containing
' doc/docx to PDF
Function ConvertBuffer(ByVal DocInputBytes As Byte()) As Byte()
Dim wp As Wpn
Dim PdfString As String
wp = New Wpn
PdfString = wp.WpsConvertBuffer(DocInputBytes)
ConvertBuffer = wp.WpsStrToBytes(PdfString)
End Function
using SubSystems.WP; // set the namespace
Wpn wp = new Wpn();
wp.InWebServer = true;
// set WebFolder property to a folder with read/write access
wp.WebFolder = "c:\\inetpub\\wwwroot\\myproject";
byte[] DocxBytes = wp.WpsFileToBytes(Server.MapPath("myfile.docx"));
Response.Clear();
Response.Charset = "";
Response.ContentType = "application/pdf";
string strFileName = "test" + ".pdf";
Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
string pdfString = wp.WpsConvertBuffer(DocxBytes);
Response.BinaryWrite(wp.WpsStrToBytes(pdfString));
Response.Flush();
Response.Close();
Response.End();
#include "wps.h" // includes function definition for the wps32.dll file
// Convert doc/docx file to the pdf file
BOOL ConvertFile(LPSTR InputDocFile, LPSTR OutputPdfFile)
{
BOOL result;
DWORD id;
id=WpsNewSession(); // begin a conversion session
result=WpsConvertFile(id,InputDocFile,OutputPdfFile); // Convert to pdf
WpsEndSession(id); // end conversion session
return result;
}
// Convert a BYTE buffer containing doc/docx to pdf
// pInputDocData: buffer containing the doc/docx to covert
// DocDataSize: size of the doc/docx data in the given buffer
// pOutSize: returns the byte size of the pdf data
// This function returns a global memory handle containing
// the converted pdf data.
HGLOBAL ConvertBuffer(LPBYTE pInputDocData, int DocDataSize, LPINT pOutSize)
{
HGLOBAL hMem=NULL;
DWORD id;
id=WpsNewSession(); // begin a conversion session
hMem=WpsConvertBuffer(id,pInputDocData,DocDataSize,pOutSize);
WpsEndSession(id); // end conversion session
return hMem;
}
' Include the wps.bas module in your project, then use one of the following
' functions to convert from doc/docx to pdf
' Example of converting from a DOC/DOCX file to PDF
Function ConvertFile(ByVal DocInputFile As String, ByVal PdfOutputFile As String) As Long
Dim result As Boolean
Dim id As Long
id = WpsNewSession() ' start a new conversion session
result = WpsConvertFile(id, DocInputFile, PdfOutputFile)
WpsEndSession (id) ' end conversion session
ConvertFile = result
End Function
' Example of converting from a string containing
' doc/docx to PDF
Function ConvertBuffer(ByVal DocInputBytes As String) As String
Dim id As Long
Dim OutString As String
Dim hMem As Long
Dim OutSize As Long
id = WpsNewSession() ' start a new conversion session
hMem = WpsConvertBuffer(id, DocInputBytes, Len(DocInputBytes), OutSize)
If (hMem <> 0) Then
OutString = Space$(OutSize + 1) ' allocate space for the output string
Call WpsHandleToStr(OutString, OutSize, hMem)
ConvertBuffer = OutString
End If
WpsEndSession (id) ' end conversion session
End Function
%@ LANGUAGE = "VBSCRIPT"%&
%
Option Explicit
Dim DocString
Dim PdfBytes
Dim obj
Set obj = Server.CreateObject("wpcc.converter")
call obj.SetFlags(1,obj.VAL_WPFLAG_RETURN_MSG_ID) ' quiet mode
DocString=""
DocString = obj.FileToString("c:\inetpub\wwwroot\DmoWpc\test.doc")
' read the test.docx file into a string
if len(DocString) > 0 then
PdfBytes = obj.ConvertDocToPdfBytes(CStr(DocString))
End If
Set obj = Nothing
%>
<html>
<head>
</head>
<body>
<%
Response.Clear()
Response.Charset = ""
Response.ContentType = "application/pdf"
Response.AddHeader "Content-Disposition","inline;
filename=" + "test.pdf"
Response.BinaryWrite(PdfBytes)
Response.Flush()
Response.End()
%>
</body>
</html>
New Features in Version 17
" I appreciate your help and attention to my problems..
This is probably why I have used your Tern control since 2000! "
Eric Gilbert
Black, Mann & Graham, L.L.P.
" We considered a few different options when looking into getting a text control package and ended up going with yours. We could not be happier with our decision. The impressive functionality of your control and the rich API support is really not available elsewhere. We have also been very impressed with your support. We had to go with another company for a component you don't offer and though their website was more flashy, they have consistently let us down. You on the other hand have always been responsive and professional with answering any questions or releasing any fixes. Based on experience, I don't know why anyone would ever choose one of your competitors over you! "
Carl Christensen
Software Developer ,Western Standard
Our rich text editor component can be used for these word processing applications: display rich text, edit rich text, insert, merge, or append rich text, mail-merge, modify rich text programmatically, format rich text, table and nested table processing, track changes, generate RTF reports, print RTF text, list processing, newspaper like columnar text processing, wrap rich text around pictures and graphics, convert rich text to pdf using WinPDF add-on, convert rich text to HTML using HTML Add-on, import doc and docx files, support Arabic, Hebrew, Chinese, and other languages, cloud based rich text processing for Windows and Mac operating systems, and all popular browsers including Mozilla FireFox and Google Chrome and Opera. TE Edit Control component can be used with C/C++, C, C++, C#, Win32, Win64, .NET, Visual Basic, VB6, ASP, ASP.NET, Delphi, Power Builder, Progress, and any environment that can interface with a DLL.
Please click here for a feature-by-feature detailed description.
The target application may not be a stand-alone Converter program.
Please click here for detail License Agreement.
The Desktop Developer License allows you to develop and deploy desktop (non-Internet) applications using this product.
Each desktop license allows one developer to use this product on up to two development computers. A developer must purchase additional licenses to use the product on more than two development computers.
The Desktop Developer license is not valid for server deployment.
The Server License allows you to develop and deploy Internet and server hosted applications using this product.
DOC to PDF Converter for .NET C#/WinForm/ASP.NET, 32/64 Bit (ZIP FILE)
DOC to PDF Converter for Win32 DLL/ActiveX/MFC/C/C++/ASP (ZIP FILE)
DOC to PDF Converter for Win64 C/C++/MFC SDJ (ZIP FILE)
DOC to PDF Converter for .NET C#/WinForm/ASP.NET, 32/64 Bit (PDF FILE)
DOC to PDF Converter for Win32 DLL/ActiveX/MFC/C/C++/ASP (PDF FILE)
DOC to PDF Converter for Win64 C/C++/MFC SDJ (PDF FILE)
Since our components are targeted toward software developers, the installation is simple. Our component software is delivered in a zip file. To install, simply copy the content of the zip folder to an empty folder in your computer and then follow the instruction for the product usage.
Our software does not install itself, so you can be rest assured that your system is not affected by an automatic installation process.
Please click here to view the license agreement for the product. The license agreements for the other products are found on their respective page.
To Uninstall, simply delete all product files from the installation folder or any other folder where you might have copied the product files. For example, if you copied the content of the installation zip folder to a folder called c:\MyFolder, then select the contents of the MyFolder folder, and delete all files. If you have copied the DLLs to your project folder, then delete those DLL files as well.
Please Click Here to read about our Technical Support options.