You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WkHtmlToXLibrariesManager.Register(new Linux32NativeBundle());
WkHtmlToXLibrariesManager.Register(new Linux64NativeBundle());
WkHtmlToXLibrariesManager.Register(new Win32NativeBundle());
WkHtmlToXLibrariesManager.Register(new Win64NativeBundle());
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.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
WkHtmlToXSharp.Bundle
Nuget packageObviously the fix is to install
System.Configuration.ConfigurationManager
but the dependencies ofWkHtmlToXSharp
should probably include this so it gets installed automatically.The text was updated successfully, but these errors were encountered: