0 votes

uHtmlToPdf

The super easy to use html To pdf Converter

 

=====================================================================================

Mvc sample code

 

public FileResult Index()

{

var fileName = HtmlToPdfHelper.GeneratePdf(Request["url"]);

 

return File(fileName, "application/pdf", Guid.NewGuid().ToString() + ".pdf");

}

 

=====================================================================================

 

Asp.Net sample code

 

var bytes = HtmlToPdfHelper.GeneratePdf(Request["url"]);

 

Response.AddHeader("content-disposition", "attachment;filename=" + Guid.NewGuid().ToString() +".pdf");

Response.ContentType = "application/octectstream";

Response.BinaryWrite(bytes);

Response.End();

 

=====================================================================================

Screenshots

Package owner

winston loja gubantes

winston loja gubantes

winston has 22 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (0%)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: winston loja gubantes
  • Created: 27/02/2014
  • Current version 1.0.0
  • License MIT
  • Downloads: 2877

External resources