codaxy / wkhtmltopdf

C# wrapper around excellent wkhtmltopdf console utility.
265 stars 92 forks source link

customPath null #21

Closed Jedarc closed 7 years ago

Jedarc commented 7 years ago

For some reason it is not possible to get the value for the customPath variable in the GetWkhtmlToPdfExeLocation method in the PdfConvert class.

mstijak commented 7 years ago

Hi, I just published a new version which doesn't require setting up any paths. You may try that.

Alternatively, you may set the path using PdfConvert.Environment.WkHtmlToPdfPath = "...";

Jedarc commented 7 years ago

Many thanks @mstijak ! I'm trying to analyze the code to create an option to generate the Pdf file in memory (MemoryStream) instead of a physical file. Is this possible?

mstijak commented 7 years ago

Yes, simply use the OutputStream property. new PdfOutput { OutputStream = targetStream }

Jedarc commented 7 years ago

Thank you so much again! But... Is there an option that does not require the wkhtmltopdf application installed?

mstijak commented 7 years ago

No :)