以asp.net格式将word文件转换为pdf文件 [英] Converting word file to pdf file in asp.net programatically

查看:107
本文介绍了以asp.net格式将word文件转换为pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢您的回复..



但您建议将Word 2007文档保存为PDF和XPS格式,这些格式需要办公室安装和APi进行转换..但是在服务器上部署/托管我的应用程序只添加dll(12.0库)是不够的,我不知道它有什么要求..你能告诉我这个......

Thanks for reply..

But You hv suggested Saving Word 2007 Documents to PDF and XPS Formats which required office installed and an APi for conversion.. But while deploying/hosting my application on server only adding dll(12.0 library) is not sufficient and I dont know what are the requirments for it.. Can You Please tell me about this...

推荐答案

首先我不知道怎么会阻止下载!

其次用iTextSharp你可以做到

要么

读你的整个下载文件并使用iTextSharp中的段落将该文件覆盖为pdf。

或者你可以这样做!

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-以编程方式 [ ^ ]
firstly i donno how r u gonna prevent from downloading!
secondly with iTextSharp you can do it
either
read your whole downloaded file and using paragraph in iTextSharp overwrite that file to pdf.
or you can do this!
http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically[^]


这篇关于以asp.net格式将word文件转换为pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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