How we can use the VeryPDF htmltools.exe to save the PDF file (converted from html) at client machine instead of web server? Please send an example to do so.
Waiting for your response.
Thanks for your message, this can be done easily, please refer to following two solutions,
Solution 1: Run htmltools.exe at client machine
If you run VeryPDF htmltools.exe at client machine, you can use following command line to convert your HTML file to PDF file,
Htmltools.exe http://www.verypdf.com C:\out.pdf
Solution 2: Run htmltools.exe at server machine
If you run VeryPDF htmltools.exe at server side, you can call following command line from your PHP or ASP or C# or other source code to convert your HTML file or URL to PDF file file,
Htmltools.exe http://www.verypdf.com C:\wwwroot\out.pdf
After you get the PDF file, you can let customer's browser to download the PDF file, please refer to a simple .NET code at below,
private void Page_Load(object sender, System.EventArgs e)
//Set the appropriate ContentType.
Response.ContentType = "Application/pdf";
//Get the physical path to the file.
string FilePath = MapPath("verypdf.pdf");
//Write the file directly to the HTTP content output stream.