Closed neil-119 closed 10 years ago
I ended up solving this issue by rendering one html page at a time, storing the bytes in a list, and using iTextSharp to merge those documents in-memory.
This is a duplicate of issue #23. Thanks for your participation!
The underlying issue in wkhtmltopdf has been fixed, should be included in a newer release.
I tried a simple collection like below:
Objects = { new ObjectSettings { HtmlText = "Hello, world!" }, new ObjectSettings { HtmlText = "Hello, world 3!" }, new ObjectSettings { PageUrl = "www.google.com" }, new ObjectSettings { PageUrl = "www.bing.com" }, new ObjectSettings { HtmlText = "Hello, world 2!" }, }
The objects with PageUrl load fine, but for HtmlText, only the last object ("Hello, world 2!") displays, and all other HtmlText pages are blank.