C# Class PdfMakerWcfService.PdfGenerator

Mostrar archivo Open project: johnnyreilly/PdfMakerWcfService Class Usage Examples

Public Methods

Method Description
HtmlToPdf ( string pdfOutputLocation, string outputFilenamePrefix, string urls, string options = null, string pdfHtmlToPdfExePath = "C:\\Program Files\\wkhtmltopdf\\wkhtmltopdf.exe" ) : string

Convert Html page at a given URL to a PDF file using open-source tool wkhtml2pdf wkhtml2pdf can be found at: http://code.google.com/p/wkhtmltopdf/ Useful code used in the creation of this I love the good folk of StackOverflow!: http://stackoverflow.com/questions/1331926/calling-wkhtmltopdf-to-generate-pdf-from-html/1698839 An online manual can be found here: http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf-0.9.9-doc.html Ensure that the output folder specified is writeable by the ASP.NET process of IIS running on your server This code requires that the Windows installer is installed on the relevant server / client. This can either be found at: http://code.google.com/p/wkhtmltopdf/downloads/list - download wkhtmltopdf-0.9.9-installer.exe

Method Details

HtmlToPdf() public static method

Convert Html page at a given URL to a PDF file using open-source tool wkhtml2pdf wkhtml2pdf can be found at: http://code.google.com/p/wkhtmltopdf/ Useful code used in the creation of this I love the good folk of StackOverflow!: http://stackoverflow.com/questions/1331926/calling-wkhtmltopdf-to-generate-pdf-from-html/1698839 An online manual can be found here: http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf-0.9.9-doc.html Ensure that the output folder specified is writeable by the ASP.NET process of IIS running on your server This code requires that the Windows installer is installed on the relevant server / client. This can either be found at: http://code.google.com/p/wkhtmltopdf/downloads/list - download wkhtmltopdf-0.9.9-installer.exe
public static HtmlToPdf ( string pdfOutputLocation, string outputFilenamePrefix, string urls, string options = null, string pdfHtmlToPdfExePath = "C:\\Program Files\\wkhtmltopdf\\wkhtmltopdf.exe" ) : string
pdfOutputLocation string
outputFilenamePrefix string
urls string
options string
pdfHtmlToPdfExePath string
return string