Questions tagged [pechkin]

Pechkin is a .NET Wrapper for WkHtmlToPdf DLL, a library that uses the WebKit engine to convert HTML pages to PDF.

Pechkin is a .NET Wrapper for WkHtmlToPdf DLL, a library that uses the WebKit engine to convert HTML pages to PDF.

Pechkin is available in NuGet repo: in most cases you should use SynchronizedPechkin as it protects multithreaded code from crashing the lib. But for simple usage from one thread, you can use SimplePechkin directly.

39 questions
15
votes
9 answers

TuesPechkin unable to load DLL 'wkhtmltox.dll'

I've been using TuesPechkin for some time now and today I went to update the nuget package to the new version 2.0.0+ and noticed that Factory.Create() no longer resolved, so I went to read on the GitHub the changes made and noticed it now expects…
devfunkd
  • 3,164
  • 12
  • 45
  • 73
4
votes
1 answer

What the fastest way to convert Html to Pdf?

I have some "big" html files 4Mb+. Then i convert one file to PDF via Pechkin (.NET Wrapper for WkHtmlToPdf static DLL) I can safely go to sleep about 3-5 minutes. Output PDF has 2Mb+ and about 500 pages inside. var html = "...html..."; var data =…
Ilya Klementiev
  • 593
  • 8
  • 12
4
votes
3 answers

Pechkin HTML to PDF that includes a link to an extensionless PNG

I'm trying to convert an HTML string to PDF using Pechkin Synchronised (WkHtmlToPDF). Everything works perfectly apart from one (deal breaking) part. As part of the HTML string I have an Image tag that references a dynamically generated PNG file…
Luke Baughan
  • 4,658
  • 3
  • 31
  • 54
3
votes
1 answer

How can I add a header and footer to the generated PDF

I'm using Gmanny's Pechkin Pdf library and it's working perfectly. Here's is my code: private void CreatePdfPechkin(string htmlString, string fileName) { //Transform the HTML into PDF var pechkin =…
panky sharma
  • 2,029
  • 28
  • 45
3
votes
1 answer

Pechkin and in-used process in IIS

I use Pechkin for generating pdf in my web application, but i have a problem, when application use it to generate PDF, append to IIS application a in use process and i can not restart application, i have to recycle application pool at first and then…
Behrooz
  • 2,437
  • 3
  • 21
  • 31
2
votes
1 answer

Repeating table header on every page with Pechkin

I'm trying to include the header (thead) of a table on the top of every page generated by Pechkin (wrapper for wkhtmltopdf), but it doesn't seem to work at all. Is this feature even available or am I missing something? I've tried including the…
user4614918
2
votes
1 answer

Background colors not rendering in Pechkin generated PDF

I'm generating a PDF file based on some HTML, using the pechkin dll. This is all working nicely except the background colors are not being rendered. An example of the HTML I'm using is:
Matt Eno
  • 687
  • 5
  • 25
2
votes
0 answers

Getting Constructor on type 'XX' not found. Using Pechkin plugin

Im trying to make this plugin run in my ASP project. I´m familiar with C# but never tried an ASP.net project before. I tried doing everthing exacly like in this blog here: http://codeutil.wordpress.com/2013/09/16/convert-html-to-pdf/ But Im getting…
Roiw
  • 147
  • 2
  • 16
1
vote
0 answers

How to set viewport width of a webpage

I'm unable to set viewport width of webpage to generate PDF from URL. My code is below: var pechkin = Factory.Create(new GlobalConfig() .SetPaperOrientation(true) .SetPaperSize(PaperKind.A2) .SetDocumentTitle("title") …
1
vote
0 answers

How to detect HTTP Error 404 or 500 in TuesPechkin

I want to throw an exception if a web page that TuesPechkin is generating for PDF returns HTTP Error 404 or 500. I don't want to get a PDF file for the friendly-looking HTML error page. It have tried the EventHandler (see the codes below), but none…
Tony
  • 1,827
  • 1
  • 22
  • 23
1
vote
0 answers

Generating PDF with Print button on .NET

I have a requirement to dynamically generate a PDF document from HTML that includes a button that will trigger the PDF print dialog, when viewed in either a browser or Adobe Acrobar Reader, or any program that displays PDFs. I currently use…
Myles McDonnell
  • 12,943
  • 17
  • 66
  • 116
1
vote
1 answer

Pechkin to Tuespechkin

For a project, we are migrating to Windows Azure. I have to make sure that the HTML to PDF converter will run on a 64 bit worker role. Since Pechkin can't run as a 64bit application I have decided to use Tuespechkin, because they should be very…
user480355
  • 31
  • 1
  • 6
1
vote
1 answer

Adding fixed footer to bottom of page using Pechkin

I'm trying to add a fixed HTML footer to the bottom of the PDF generated by Pechkin. The footer should always remain at the bottom of the PDF page. I have tried CSS on the following pages but they do not seem to work, the HTML works correctly in a…
user3656029
  • 101
  • 1
  • 14
1
vote
2 answers

How to convert full webpage with css to pdf file with pechkin in asp.net ?

I try to convert webpage in to pdf . Now i can convert it already, But that file not same in webpage.How to get it like webpage? I use pechkin.dll to convert webpage to pdf. Please help and thank you very much. this is a link to see my…
1
vote
1 answer

How To Do A Page Break in a PDF Generated Using Pechkin

I'm generating a PDF file based on some HTML, using the pechkin dll. This is all working nicely except the I need to it add a page break at certain places and I don't know how. I thought that using a css page-break-before, but that doesn't seem to…
Matt Eno
  • 687
  • 5
  • 25
1
2 3