Need recommendations for an ASP.Net compatible HTM to PDF library

Question:I am looking for a library to convert HTML to PDF, including styles. I would prefer it be able to accept a URL as an option, but if required, HTML can be passed in as a stream/byte array with all styles in a single file/buffer. I am using VB / ASP.Net 3.5. I have complete control of the server machine ( I can run as a service, etc... ) however, I cannot require the user to be logged in, so no application level or print driver type solutions please. Is there any solution on VeryDOC?

Answer: According to your needs, you need to convert HTML to PDF by online URL instead of downloading it to local file. And you need to run the conversion from ASP.NET or VB. Meanwhile you do not need to use no application level or print driver type solutions. So I guess maybe you can have a free trial of this software: VeryDOC DOC to Any Converter, by its SDK version, you can use the library to convert HTML to PDF by URL. Meanwhile the SDK version also can help you run the conversion from HTML to PDF together with other programming languages like Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously. Please check more information of this software on homepage, in the following part, I will show you how to use it.

First of all, free trial DOC to Any Converter SDK

  • Download DOC to Any Converter SDK/COM Version. There are two versions for you to choose, developer version and server version. Please choose the proper version according to your needs.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can use it normally and find code templates.

Second, convert HTML to PDF from ASP.NET by library.

  • When you need to run the conversion, please refer to the following code template:
  • Please download and install EXEShell COM Library (freeware) and then use following ASP code to run the conversion. <%
        Set comEXEShell = Server.CreateObject("")
        RootPath = Server.MapPath(".") & "\"
        EXEFile = RootPath & "doc2any\doc2any.exe"
        DOCFile = RootPath & ""
        PDFFile = RootPath & "out.pdf"
        strCommandLine = EXEFile & " " & DOCFile & " " & PDFFile
        response.write strCommandLine & "<br>"
        comEXEShell.RunCommandLine "UserName", "Password", strCommandLine
        Set comEXEShell = Nothing
    You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please refer to the steps in #2 to solve the 1314 Error.

By this software, you can convert HTML to PDF from ASP.NET by PDF library. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!