Click here to Skip to main content
15,906,567 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi
I am using itext sharp dll to export to PDF.
IN LOCAL SERVER - after export to pdf it ask for
Do you want to open or save test.pdf from localhost?
when i click on OPEN
it say Test.pdf coludn't be downloaded along with option RETRY, CANCEL ..
when i click on RETRY pdf gives an error as
PDF is not supportedfile type or because the file damage.
BUT,
When i click on SAVE option get message as () and after that i click on open option document is geting open

can anyone help me why im getting damage or not supported type error when i directly click on Open option after export to PDF
Please help
Posted

1 solution

Try it in different browsers and see if you get same issue in all browsers. Also check that you are setting the name of file correctly, try with a small file size etc.

I found something on stackoverflow that might be helpful:

http://stackoverflow.com/questions/14634486/pdf-file-damaged-on-download-in-chrome-and-firefox[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900