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
1
vote
1 answer

How to add page break in TuesPechkin

Im using TuesPechkin to generate a pdf using html page. I need to add a page break(New page). How can I do it...?
Ton
  • 11
  • 2
1
vote
1 answer

Blank pages when converting to PDF with TuesPechkin

I'd like to convert several different web pages into one PDF document. I found Pechkin / TuesPechkin, which has been a wonderful discovery, but I am running into one problem: only the last Object gets converted, and all the other PDF pages are…
arao6
  • 3,316
  • 5
  • 30
  • 51
1
vote
2 answers

Pechkin with Windows Azure

I'm getting this error whenever I try to debug the Azure project from Visual Studio. I checked on my original site project file the Platform Target and project's and every dependence as well are using "Any CPU". Not really sure what to do from here.…
gdubs
  • 2,724
  • 9
  • 55
  • 102
0
votes
0 answers

classes of bootstrap.css not working while i am trying to convert cshtml file to PDF file through WKHTMLTOPDF(pechkin)

I am trying to convert HTML page to pdf using pechkin, I used an internal stylesheet to formate my page, but also want to use some classes of bootstrap.css(external) CSS, in pdf bootstrap classes are not working. What to do? Please suggest.
user2301821
  • 1
  • 1
  • 4
0
votes
0 answers

Style and Script is not loading while working with Pechkin on Https protocal

I am using pechkin library in C# a wrapper for wkhtmltopdf. It's working fine with http: protocal but when using https:, scripts and style are not loading in pdf. Thanks in advance. View:
RonyLoud
  • 2,408
  • 2
  • 20
  • 25
0
votes
0 answers

Printing html to pdf using Pechkin (WkHtmlToPdf) is not working

I have a serious problem with Pechkin (WkHtmlToPdf). After converting an html string to pdf for n-times, it won't work anymore. Does anybody know how can I fix the problem? Here is my code: public static byte[] HtmlToPdf(string html) { // Create…
Siyavash Hamdi
  • 2,764
  • 2
  • 21
  • 32
0
votes
1 answer

Why session end when converting a page to pdf using pechkin in Asp.Net?

I use Pechkin to convert my page to pdf, every time I try to convert, the page that generated is always login page. But, when I open the page directly it opened Normally. this is my code that i used to convert to pdf: var client = new WebClient(); …
patrixx
  • 11
  • 6
0
votes
2 answers

Convert to PDF method only works once

I'm using pechkin.synchronized to convert from HTML to PDF. On the first http request it works fine, but after that it gets stuck on the convert method and doesn't doesn't do anything after that. Here's my controller action method: public…
luka
  • 103
  • 1
  • 5
0
votes
0 answers

Can not convert HTML file to PDF on server

I try to use pechkin.dll to convert HTML file to PDF. At localhost it works. But when I upload project to server, I can't convert the file. I get an error: "internal server error 500". Can you tell how to solve this problem ? Please help. This is…
0
votes
0 answers

How to specify the path file to receive the file

I'm working with pechkin.dll to convert a webpage to a PDF file. I try to use "TransmitFile" set path, but it's not working. This is my code and now that file is still store at C:\User\Username\download. How do I specify the file in my…
0
votes
2 answers

How can I start content on a new page if it doesn't fit

I'm using Pechkin to convert html content with css to pdf files. The problem I am facing is that a part of a html block is being cut off because it doesn't fit on the current page anymore. Now what i would like is that when the content doesn't fit…
Jamie
  • 3,031
  • 5
  • 36
  • 59
0
votes
1 answer

How to clear MS Word content when printed as PDF using Pechkin

Our Client asked our team to implement print functionality for companies which are their clients. The page where they add companies has an textarea which they use to write short description. However they sometimes copy and paste from MS Word or…
0
votes
1 answer

Footer not rendering when converting HTML to PDF

I'm using TuesPechkin to convert HTML to PDF and I'm specifying the URL of an HTML file that should appear as the footer on each page, however it doesn't render the footer. As a test, I even tried setting the LeftText to something and that doesn't…
Matt Eno
  • 687
  • 5
  • 25
0
votes
1 answer

TuesPechkin how to get PrintBackground = false to work in VB.NET for ASP.NET webpages

@Imports TuesPechkin Dim WebSettings = New WebSettings() With WebSettings .PrintBackground = False End With Dim URL As New Uri("http://www.adelaide.edu.au") Dim converter As IPechkin = Factory.Create() Dim result As Byte() =…
lpfy
  • 124
  • 1
  • 2
  • 10
0
votes
0 answers

Pechkin Html -> PDF With Table Of Contents

I am having a very difficult time adding a table of contents to my generated pdfs utilizing Pechkin. I have tried specifying a location to the XSLT file to use, however, nothing happens. I have tried to manually create my own TOC but was unable to…
Duffp
  • 5,878
  • 2
  • 15
  • 16