using (MultiplexingConverter converter = new MultiplexingConverter())
{
//WkHtmlToPdfConverter converter = new WkHtmlToPdfConverter();
converter.GlobalSettings.Size.PageSize = PdfPageSize.Letter;
byte[] data = converter.Convert(@"
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
");
File.WriteAllBytes("test.pdf", data);
}
Obviously the fix is to install `System.Configuration.ConfigurationManager` but the dependencies of `WkHtmlToXSharp` should probably include this so it gets installed automatically.
Steps to Reproduce
WkHtmlToXSharp.Bundle
Nuget packageusing (MultiplexingConverter converter = new MultiplexingConverter()) { //WkHtmlToPdfConverter converter = new WkHtmlToPdfConverter(); converter.GlobalSettings.Size.PageSize = PdfPageSize.Letter;
}