I want to install the wkhtmltopdf.exe in an specific tools folder on the server and use it instead the version decompressed in the bin folder.
This is the line I'm using:
var pdfBytes = nRecohtmltoPdfObj.GeneratePdf(strView);
How can I change the path where the executable is located?
Thanks
Just use PdfToolPath property of converter:
var converter = new NReco.PdfGenerator.HtmlToPdfConverter();
converter.PdfToolPath = "your path";
var pdfBytes = converter.GeneratePdf(htmlContent);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.