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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: winston loja gubantes
  • Created: 27/02/2014
  • Current version 1.0.0
  • License MIT
  • Downloads on Our: 1.1K

External resources