I want to convert an HTML file to PDF file, and I was using "wkhtmltopdf.exe".
Then we moved this application to a shared hosting server. This server, wouldn't allow to run .exe files, so that I have to use the WkHtmlToXSharp.dll [wrapper for the above exe].
Its working fine but the problem is this it caching the output somewhere, so that every-time I create a new PDF, it always giving the first one.
I have called .Dispose() and setting the converter to null but no use.
Below is my code. every-time I pass a new html file[htmlFullPath] with different images in it.
Also I am setting the margins 0cm for all sides, but not working.
I want to convert an HTML file to PDF file, and I was using "wkhtmltopdf.exe". Then we moved this application to a shared hosting server. This server, wouldn't allow to run .exe files, so that I have to use the WkHtmlToXSharp.dll [wrapper for the above exe].
Its working fine but the problem is this it caching the output somewhere, so that every-time I create a new PDF, it always giving the first one.
I have called .Dispose() and setting the converter to null but no use.
Below is my code. every-time I pass a new html file[htmlFullPath] with different images in it. Also I am setting the margins 0cm for all sides, but not working.