URL2PDF ASP.NET PDF Converter
URL2PDF for ASP.NET
Converts HTML web sites to PDF immediately utilizing an ASP.NET Class Library and a command-line device within the background.
– Generate PDF information from Internet pages
– Multiple choices offered within the Class Library, with a purpose to encapsulate complexity.
– If your utility is hosted, make certain your internet host permits operating an executable course of inside the internet utility. For extra data please remark or ship me a message before you purchase.
Overview
After my analysis for PDF conversion instruments (which is part of the documentation), I discovered that top-of-the-line, up-to-date, usable answer that doesn’t value hundreads of {dollars}, is wkhtmltopdf.
This is an meeting that wrapps the home windows binaries.
Source code and demo challenge are offered.
Use this for
– creating pdf buttons to transform the present web page (with Request.Url.ToString())
– changing a selected inner of exterior location
– making a printable model of your web site/web page in pdf, tweaking the print.css
Version History
v1.1
– modified most important methodology identify from OpenPDFfromURL to GenerateAndGetLocation
– modified return worth from script tag to relative url solely (/pdf/12345.pdf). ”.pdf” extension nonetheless already added by methodology. this requires extra code on the entrance finish however allows working with the url as desired. script tags are routinely added by the “true” paremeter of RegisterStartupScript
– included two approach instance
– auto technology and open (popups could also be blocked at first try)
– two button. one generates the pdf. one other opens the pdf in a brand new window. no popup points
– or simply open in the identical window!
– utilization:
string location = pdf.GenerateAndGetLocation();
string script = “window.open(’” + location + ”’, ‘_blank’);”;
ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, script, true);
or simply
ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, “window.open(’” + pdf.GenerateAndGetLocation()+ ”’, ‘_blank’);”, true);
v1.0
– makes use of Response.Write to inject javascript
– most important methodology, OpenPDFfromURL, returns a script tag
– utilization: Response.Write(pdf.OpenPDFfromURL());
Future enchancment areas
– Try to beat some browsers popup blocking and consumer motion required to allow it
Thirt social gathering utility problematic areas
– could present login web page if web site requires authentication/redirection
– could present clean space for iframes
Help me serving to you
If you buy, please take a quick second to fee this product