URL2PDF for ASP.NET
Converts HTML web pages to PDF immediately the use of an ASP.NET Magnificence Library and a command-line software within the background.
– Generate PDF recordsdata from Web pages
– More than one choices supplied within the Magnificence Library, in an effort to encapsulate complexity.
– In case your software is hosted, be certain your internet host lets in operating an executable procedure inside the internet software. For more info please remark or ship me a message before you purchase.
After my analysis for PDF conversion gear (which is part of the documentation), I discovered that some of the very best, up-to-date, usable answer that doesn’t price hundreads of greenbacks, is wkhtmltopdf.
That is an meeting that wrapps the home windows binaries.
Supply code and demo undertaking are supplied.
Use this for
– developing pdf buttons to transform the present web page (with Request.Url.ToString())
– changing a selected inside of exterior location
– making a printable model of your web page/web page in pdf, tweaking the print.css
Model Historical past
– modified major manner title from OpenPDFfromURL to GenerateAndGetLocation
– modified go back price from script tag to relative url simplest (/pdf/12345.pdf). ”.pdf” extension nonetheless already added by means of manner. this calls for extra code at the entrance finish however allows operating with the url as desired. script tags are routinely added by means of the “true” paremeter of RegisterStartupScript
– incorporated two manner instance
– auto technology and open (popups could also be blocked to start with strive)
– two button. one generates the pdf. every other opens the pdf in a brand new window. no popup problems
– or simply open in the similar window!
string location = pdf.GenerateAndGetLocation();
string script = “window.open(’” + location + ”’, ‘_blank’);”;
ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, script, true);
ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, “window.open(’” + pdf.GenerateAndGetLocation()+ ”’, ‘_blank’);”, true);
– major manner, OpenPDFfromURL, returns a script tag
– utilization: Reaction.Write(pdf.OpenPDFfromURL());
Long term development spaces
– Check out to triumph over some browsers popup blocking off and person motion required to permit it
Thirt birthday celebration software problematic spaces
– might display login web page if web page calls for authentication/redirection
– might display clean house for iframes
Lend a hand me serving to you
If you are going to buy, please take a temporary second to price this product