在asp.net中编辑文本后,将pdf模板文件保存到新的pdf文件中

时间:2009-06-05 22:44:44

标签: asp.net pdf itext

我有pdf文件,其中包含一些我想用另一段文本替换的文本(并用新名称保存文件。)
我可以用iTextSharp做到吗? 怎么样?
你能给我指导吗?

1 个答案:

答案 0 :(得分:0)

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

请记住对(链接)示例的评论:

/* 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.
 */