This project is read-only.

wkhtmltopdf.exe is being extracted to the PowerShell folder



I've been playing with your DLL through PowerShell, it makes an attempt to extract the wkhtmltopdf.exe file to the 'C:\Windows\System32\WindowsPowerShell\v1.0\' folder, which is the folder that contains the PowerShell executable. If the script is run without Admin privileges, the DLL will not be able to access it, so the code throws an error at GeneratePDF method. Is there a workaround that I can apply here to make it save to another folder, like whatever is returned by [System.IO.Path]::GetTempPath()?



fedorchenko wrote Jan 28, 2016 at 2:00 PM

It is possible to specify another location for wkhtmltopdf.exe with PdfToolPath property (by default app bin folder is used and in your case this is folder with power shell executabes).