c# - wnvhtmltopdf: Images are missing in PDF -
c# - wnvhtmltopdf: Images are missing in PDF -
i using winnovative convert html pdf. there 2 server 1 web , other 1 file server(to store files). both servers in network. pdf code running on web server , @ end file used store @ file server. in html template images given total path though image broken in pdf files.
below simple code used.
pdfconverter pdfconv = new pdfconverter(); pdfconv.licensekey = "xxx-xxx-xxx-xxx"; windowsimpersonationcontext impersonateonfileserver = impersonateonfileserver(username, domain, password); pdfconv.savepdffromhtmlstringtofile(htmltoconvert, filepath);
impersonateonfileserver method authenticate network said pdf used store @ file sever required. windowsimpersonation working because pdf saved , problem images.
for test purpose have set aside file sever concept , tried save pdf @ web server in application root folder images showing in pdf.
therefore conclusion there goes wrong when store pdf file server understood after test.
if has came across problem or thought please draw me on right way.
thank you.
try using http://wkhtmltopdf.org/'s free
i used on project , worked fine
c# asp.net winnovative
Comments
Post a Comment