Does your latest version of HTML to PDF Converter support creating a pdf file from an aspx web page?

Does your latest version of HTML to PDF Converter support creating a pdf file from an aspx web page? And if so how much would it be for us to upgrade to the latest release?

Thank you,
Customer

----------------------------------------------------

image

>>Does your latest version of HTML to PDF Converter support creating a pdf file from an aspx web page?

Yes.

>>And if so how much would it be for us to upgrade to the latest release? Our verypdf key in below.

Please download "HTML Converter SDK/COM" from following web page to try,

http://www.verypdf.com/app/html-converter/try-and-buy.html#sdk
http://www.verypdf.com/dl2.php/htmltools_sdk.zip

after you download and unzip it to a folder first, launch a CMD window with administrator privilege, go to "htmltools_sdk\bin" folder in cmd window, run "install.bat" to register "HTML Converter SDK/COM" into your system,

install.bat

then please open "COM_example_C#\WindowsFormsApplication1\WindowsFormsApplication1.sln" project in "Microsoft Visual Studio 2010", compile and run it, then you can convert a web page to PDF file easily,

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

using VeryPDF;

using System.IO;

 

namespace WindowsFormsApplication1

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void button1_Click(object sender, EventArgs e)

        {

            string appPath = Path.GetDirectoryName(Application.ExecutablePath);

            string strInFile = "http://www.verypdf.com";

            string strOutFile = "D:\\downloads\\_test_out.pdf";

 

            string strCmd = "-$ XXXX-XXXX-XXXX-XXXX -webkit";

            strCmd += " \"" + strInFile + "\" \"" + strOutFile + "\"";

            MessageBox.Show(strCmd);

 

            System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.htmltoolsCom");

            VeryPDF.htmltoolsCom VeryPDFCom = (VeryPDF.htmltoolsCom)System.Activator.CreateInstance(VeryPDFType);

            string strReturn = VeryPDFCom.htmltools(strCmd);

            MessageBox.Show("Processing finished.");

        }

    }

}

 

VeryPDF has more products which can convert web pages to PDF files, please look at following web page for more information,

http://www.verypdf.com/pdfcamp/convert-html-to-pdf.html

If you encounter any problem with our products, please feel free to let us know, we will assist you asap.

VeryPDF

-------------------------------------------------------------
Can you please ask verypdf these questions?

1. Can I convert html to pdf in asp.net project without registering com component?
2. Can the output file be saved to memory stream instead of saving to drive?
3. Instead of passing the input as webpage URL can I pass the input as html text. I don't want to convert the complete page to pdf. For e.g. can I pass the inner html of a div?

Thank you!!
Customer
-------------------------------------------------------------
>>1. Can I convert html to pdf in asp.net project without registering com component?

With "HTML Converter SDK/COM" product, you MUST register COM Component before use it.

If you are unwilling register COM Component, you can choose our "HTML Converter Command Line (htmltools.exe)" product, this product can be used without registration first, "HTML Converter Command Line (htmltools.exe)" product can be downloaded from following web page,

http://www.verypdf.com/app/html-converter/try-and-buy.html#cmd
http://www.verypdf.com/htmltools/htmltools.zip

You can call "HTML Converter Command Line (htmltools.exe)" from ASP.NET code to convert HTML files to PDF files directly,

string strCmdLine = "D:\VeryPDF\htmltools.exe D:\test.html D:\out.pdf";
ProcessStartInfo info = new ProcessStartInfo(strCmdLine);
info.UseShellExecute = false;
info.RedirectStandardInput = true;
info.RedirectStandardError = true;
info.RedirectStandardOutput = true;
using (Process install = Process.Start(info))
{
string output = install.StandardOutput.ReadToEnd();
install.WaitForExit();
// Do something with you output data
Console.WriteLine(output);
}

>>2. Can the output file be saved to memory stream instead of saving to drive?

Sorry, "HTML Converter SDK/COM" and "HTML Converter Command Line (htmltools.exe)" are all not save output PDF file to memory, they will save output PDF file to disk file, you can then load the PDF file into memory and delete that PDF file from disk, this can be done easily.

>>3. Instead of passing the input as webpage URL can I pass the input as html text. I don't want to convert the complete page to pdf. For e.g. can I pass the inner html of a div?

Yes, but you need save "inner html of a div" to a temporary HTML file first, call "HTML Converter SDK/COM" or "HTML Converter Command Line (htmltools.exe)" to convert this temporary HTML file to PDF file, and delete original temporary HTML file.

VeryPDF

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

This entry was posted in HTML Converter (htmltools) and tagged . Bookmark the permalink.

One Response to Does your latest version of HTML to PDF Converter support creating a pdf file from an aspx web page?

  1. VeryPDF says:

    If you want convert HTML files to PDF files, we suggest you may download "HTML Converter SDK/COM" from following web page to try,

    http://www.verypdf.com/app/html-converter/try-and-buy.html#sdk
    http://www.verypdf.com/dl2.php/htmltools_sdk.zip

    "HTML Converter SDK/COM" can be used easier than DocConverter COM product, you can call "HTML Converter SDK/COM" from your code to convert HTML files to PDF files easily.

    After you unzip it to a folder and run a CMD window by administrator privilege, and then run following command line to register htmltoolsCom.exe,

    -----------------------------
    htmltoolsCom.exe /regserver
    -----------------------------

    after you registered htmltoolsCom.exe, you can run following C# code to convert HTML files to PDF files easily,

    -----------------------------
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using VeryPDF;
    using System.IO;

    namespace WindowsFormsApplication1
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    string appPath = Path.GetDirectoryName(Application.ExecutablePath);
    string strInFile = "http://www.verypdf.com";
    string strOutFile = "D:\\downloads\\_test_out.pdf";

    string strCmd = "-$ XXXX-XXXX-XXXX-XXXX -webkit";
    strCmd += " \"" + strInFile + "\" \"" + strOutFile + "\"";
    MessageBox.Show(strCmd);

    System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.htmltoolsCom");
    VeryPDF.htmltoolsCom VeryPDFCom = (VeryPDF.htmltoolsCom)System.Activator.CreateInstance(VeryPDFType);
    string strReturn = VeryPDFCom.htmltools(strCmd);
    MessageBox.Show("Processing finished.");
    }
    }
    }
    -----------------------------

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

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!