tuespetre / TuesPechkin

A .NET wrapper for the wkhtmltopdf library with an object-oriented API.
326 stars 116 forks source link

Blank pages! #40

Closed neil-119 closed 10 years ago

neil-119 commented 10 years ago

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.

neil-119 commented 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.

tuespetre commented 10 years ago

This is a duplicate of issue #23. Thanks for your participation!

ashkulz commented 9 years ago

The underlying issue in wkhtmltopdf has been fixed, should be included in a newer release.