如何动态创建和保存pdf文件 [英] How to create and save a pdf file dynamically

查看:74
本文介绍了如何动态创建和保存pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好专家

我遇到了问题。我有一个Pdf文件,当用户点击打开的pdf文件链接时,该文件是打开的。现在我需要的是当用户打开它时,它应该以可编辑模式打开,并且在更改之后它需要自动保存回服务器上。可能吗?

如果是,那么如何...

谢谢

Hello experts
I face a problem. I have a Pdf file which is open when user clicks on open pdf file link. Now my need is when user opens it, it should be opened in editable mode and after changes it needs to be automatically saved back on server. Is it possible?
If Yes then how ...
Thanks

推荐答案

我很害怕,你不能。



我可以想到一个解决方法。首先使用像 iTextSharp 这样的库来阅读 pdf 文件。

在文本中显示 TextArea 或页面上的内容。允许编辑 TextArea



添加更新按钮。点击点击,删除上一个文件并将 TextArea 内容保存为 pdf 以前的文件名。
I am afraid, you can't.

I can think of a workaround though. First read the pdf file using some library like iTextSharp.
Show that text in a TextArea or something on the Page. Allow edit on that TextArea.

Add a Update button. On Click of that, delete the previous file and save the TextArea Content as pdf with the previous file name.


参考



使用c-itextsharp编辑现有pdf / [ ^ ]


请使用aspose pdf创建和编辑pdf。

提供pdf http: //www.aspose.com/.net/pdf-component.aspx [ ^ ] [ ]
Please use aspose pdf for create and edit pdf.
aspose pdfhttp://www.aspose.com/.net/pdf-component.aspx[^][]


这篇关于如何动态创建和保存pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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