使用itextsharp dll导出为PDF [英] export to PDF using itextsharp dll

查看:104
本文介绍了使用itextsharp dll导出为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用itext sharp dll导出为PDF。

IN LOCAL SERVER - 导出为pdf之后它要求

你想从localhost打开或保存test.pdf吗?

当我点击OPEN

它说Test.pdf colud不能和RETRY一起下载,CANCEL ..

当我点击RETRY pdf时出现错误

PDF不支持文件类型或因为文件损坏。

但是,

当我点击SAVE选项获取消息为()之后我点击打开选项文档打开



任何人都可以帮助我为什么我在导出到PDF后直接点击打开选项时受到损坏或不支持类型错误

请帮助

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

推荐答案

试试吧不同的浏览器,看看你是否在所有浏览器中遇到同样的问题还要检查你是否正确设置文件名,尝试使用小文件大小等。



我在stackoverflow上发现了一些可能有用的东西:



http: //stackoverflow.com/questions/14634486/pdf-file-damaged-on-download-in-chrome-and-firefox [ ^ ]
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[^]


这篇关于使用itextsharp dll导出为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆