5 ms·
I needed this post a year ago when I was looking for this exact thing. I did end up going with Puppeteer because I needed it for something else that I couldn't
by flanbiscuit 10mo ago
I needed this post a year ago when I was looking for this exact thing. I did end up going with Puppeteer because I needed it for something else that I couldn't avoid. I use a large list of flags with it to launch the most minimal version of headless Chrome that I can.
I am going to look into switching to MigraDoc and see if i can drop puppeteer
Thanks for this great research!
- eXpl0it3r 10mo agoYou're welcome! Having played around with MigraDoc for the past few weeks, I do still recommend it, as long as you don't need more complex layouts. Here's a short and certainly incomplete list of limitations that I've run into so far: - No tables within other tables - No multi-column page layouts - No multi-section on the same page (new section = new page) - No letter spacing - MigraDoc doesn't know about the final spacing, so you can't adjust say the width of some table column automatically. Either calculate an estimated based on the text/content or space them equally. - Can't shade (background color) only a selection of words in a text - Lists can only have up to three different symbols - List indentation can behave quite strange, due to tabstops - No horizontal rule (can be emulated) - There's a bug with bottom border of a paragraph On the other hand, MigraDoc & PDFsharp as less than 1MB and plenty fast, so it's a great package, as long as you can build some workarounds to achieve the desired look.