在asp.net中编辑文本后,将pdf模板文件保存到新的pdf文件中 [英] Save pdf template file to new pdf file after edit text in asp.net

查看:504
本文介绍了在asp.net中编辑文本后,将pdf模板文件保存到新的pdf文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有pdf文件,其中包含一些我想用另一段文本替换的文本(并使用新名称保存文件。)

我可以用iTextSharp执行此操作吗?

怎么样?

你能给我指导吗?

I have pdf file that contains some text that I want to replace with another piece of text (and save the file with new name.)
Can I do that with iTextSharp?
And how?
Can you give me guide for it?

推荐答案

一般来说,这是不可能的。查看常见问题解答讨论了这个问题。 FAQ解决了iText(iTextSharp派生的Java版项目),但也适用于iTextSharp。

Generally speaking this is not possible. Check out this FAQ question which discusses the issue. The FAQ addresses iText (the Java version project from which iTextSharp was derived) but applies to iTextSharp as well.

请记住(链接)示例的注释:

Keep in mind the comments on the (linked) example:

/* This is only a partial answer. It's a quick and dirty method showing how to
 * change a stream inside a PDF. Obviously, you'll have to detect words that are
 * stored in Form XObjects too, and you can seriously screw up the layout when
 * you manipulate the content stream as is done in this example.
 */

这篇关于在asp.net中编辑文本后,将pdf模板文件保存到新的pdf文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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