Skip to content

johnnyreilly/PdfMakerWcfService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a WCF service that exposes the WKHTMLtoPDF project which can be found at: http://code.google.com/p/wkhtmltopdf/

It can be used to generate a PDF given a URL, this PDF can be returned by the WCF service or the location of the generated PDF can be.  I wrote this to work with 0.9.9 of wkhtmltopdf (seems to be the least buggy).  However I believe it works with all versions.

There's a few gotchas for using this:

1. Make sure that you have the correct installation path for wkhtmltopdf.exe set in your config.
2. Ensure that Read and Execute rights are granted to the wkhtmltopdf folder for the relevant process
3. Ensure that Write rights are granted for the location you want to create your PDFs for the relevant process

The Demo.aspx file included is a test harness which demonstrates how the web service can be used.  Either to stream a PDF directly back to the client or to return a PDF URL which can be redirected to. This second method can be called via AJAX.

About

HTML to PDF using a WCF Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages