C# 클래스 PdfMakerWcfService.PdfGenerator

파일 보기 프로젝트 열기: johnnyreilly/PdfMakerWcfService 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

HtmlToPdf() 공개 정적인 메소드

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
리턴 string