Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

18
  • 1
    PdfSharp is good in terms of performance, but it didn't render floats properly for me. Luckily, I could change the markup to use good old tables, PdfSharp handles them well. Commented Sep 14, 2015 at 19:12
  • 3
    We tried HtmlRenderer. It was really quick when not loading any CSS. But when we tried to apply CSS (Bootstrap plus some bespoke), the CSS parsing took a while (which we could probably mitigate), and rendering was completely different to the web page. Commented Nov 10, 2015 at 22:42
  • 1
    @user2347528 - looking at the source for HtmlRenderer.PdfSharp, there's no way to fix this - it just takes the total page height and clips into each PDF page, which is really unfortunate - it means multi-page PDFs with this library really can't be done. Commented Mar 17, 2016 at 9:41
  • 7
    BS. This creates an image of the HTML and adds the image into the pdf file. This is not a real PDF at all. Also, PDF is a vector graphics format - you can scroll near infinitely - of course except if the PDF consists of a raster graphic, which is what this library produces. Commented Jun 6, 2017 at 9:12
  • 2
    @Anestis Kivranoglou i have used pdf sharp on my project. But for html design with css, it cannot render the html. Instead it is only creating a blank page Commented Jun 21, 2019 at 11:59