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*
- 1PdfSharp 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.Gebb– Gebb2015-09-14 19:12:50 +00:00Commented Sep 14, 2015 at 19:12
- 3We 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.OutstandingBill– OutstandingBill2015-11-10 22:42:57 +00:00Commented 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.Peter Horsley– Peter Horsley2016-03-17 09:41:58 +00:00Commented Mar 17, 2016 at 9:41
- 7BS. 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.Stefan Steiger– Stefan Steiger2017-06-06 09:12:39 +00:00Commented 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 pagerafat– rafat2019-06-21 11:59:34 +00:00Commented Jun 21, 2019 at 11:59
| Show 13 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
default