Open SIM128 opened 6 years ago
I have the same problem. If i add page url with another url, iss throw an exception which is wkhtmltox.dll_unloaded.
my code
var document = new HtmlToPdfDocument
{
GlobalSettings = {
ProduceOutline = true,
DocumentTitle = title,
Orientation = orientation,
PaperSize = PaperKind.A4,
Margins =
{
Left = 1.375,
Right = 1.375,
Top = top,
Bottom = bottom,
Unit = TuesPechkin.Unit.Centimeters
}
},
Objects = {
new ObjectSettings {
PageUrl = link,
HeaderSettings = new HeaderSettings{HtmlUrl = headerPath, ContentSpacing = 2 },
FooterSettings = new FooterSettings{HtmlUrl = footerPath,}
}
}
} ;
Hi,
I'v a problem converting a document with the PageUrl, Header and Footer set.
This is my method:
The result is a pdf only with header and footer and nothing in the "body".
If i set HtmlText instead of PageUrl it works.
I tested the same via cli and it works:
I'm doing something wrong here?