Render partial PDF

Sep 13, 2014 at 6:35 PM
I have a pdf document that I am generating using MigraDoc. It has "Header", "Footer" and content. It works and does what I need but now I need to insert a basic HTML inside the content. I something like this possible? It would be awesome to have a extension AddHtml to MigraDoc. I will try to take a look at the code to see if I can do something like this but if there is already a way of doing this I would love to know :)
Developer
Sep 14, 2014 at 9:06 AM
You have 3 options:
  1. Render html to image and then set the image to the pdf document.
  2. Use HtmlRenderer.PdfSharp to create the pdf document.
  3. Create HtmlRenderer.MigraDoc by looking how HtmlRenderer.PdfSharp works, should not be difficult.