Tuesday, May 28, 2013

URL2PDF ASP.NET PDF Converter

.NET - URL2PDF ASP.NET PDF Converter - CodeCanyon

URL2PDF ASP.NET PDF Converter his title this type of .NET/Add-ons This time I will review,made by tduartethemes, .NET/Add-ons is sold at a price of $10 in CodeCanyon.
URL2PDF ASP.NET PDF Converter - CodeCanyon Item for Sale
adobe // asp.net // convert // converter // cs // html // pdf // url // wkhtmltopdf //
Created 4 April 13
Last Update 30 April 13
Compatible Browsers IE6, IE7, IE8, IE9, IE10, Firefox, Safari, Opera, Chrome
Software Version .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5
Files Included Active Server Page ASPX, C# CS, XML, CSS

URL2PDF for ASP.NET

Converts HTML websites to PDF instantly using an ASP.NET Class Library and a command-line tool in the background.

- Generate PDF files from Internet pages

- Requires being able to call a window executable process (.exe) by the hosting provider

- Multiple options provided in the Class Library, in order to encapsulate complexity.

Overview

After my research for PDF conversion tools (which is a part of the documentation), I found that one of the best, up-to-date, usable solution that doesn’t cost hundreads of dollars, is wkhtmltopdf.

This is an assembly that wrapps the windows binaries.

Source code and demo project are provided.

Use this for

- creating pdf buttons to convert the current page (with Request.Url.ToString())

- converting a specific internal of external location

- creating a printable version of your site/page in pdf, tweaking the print.css

Version History

v1.1

- changed main method name from OpenPDFfromURL to GenerateAndGetLocation

- changed return value from script tag to relative url only (/pdf/12345.pdf). ”.pdf” extension still already added by method. this requires more code on the front end but enables working with the url as desired. script tags are automatically added by the “true” paremeter of RegisterStartupScript

- included two way example

- auto generation and open (popups may be blocked at first attempt)

- two button. one generates the pdf. another opens the pdf in a new window. no popup issues

- or just open in the same window!

- usage:

string location = pdf.GenerateAndGetLocation();

string script = “window.open(’” + location + ”’, ‘_blank’);”;

ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, script, true);

or just

ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, “window.open(’” + pdf.GenerateAndGetLocation()+ ”’, ‘_blank’);”, true);

v1.0

- uses Response.Write to inject javascript

- main method, OpenPDFfromURL, returns a script tag

- usage: Response.Write(pdf.OpenPDFfromURL());

Future improvement areas

- Try to overcome some browsers popup blocking and user action required to enable it

Thirt party application problematic areas

- may show login page if site requires authentication/redirection

- may show blank area for iframes

Help me helping you

If you purchase, please take a brief moment to rate this product

Related produck This user:tduartethemes


ImageShack Downloader - CodeCanyon Item for Sale WordPress Converter Widget for PDF, PNG and JPG - CodeCanyon Item for Sale URLExtensions Converter for PDF/PNG - CodeCanyon Item for Sale Photobucket Downloader - CodeCanyon Item for Sale URL2IMAGE for SharePoint 2010 - CodeCanyon Item for Sale SharePoint 2010 Weather Webpart - CodeCanyon Item for Sale URL2IMAGE ASP.NET Module - CodeCanyon Item for Sale

More items by tduartethemes

No comments:

Post a Comment