1

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?

4

1 回答 1

0

一般来说,这是不可能的。查看讨论该问题的常见问题解答问题。常见问题解答涉及 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.
 */
于 2009-09-07T09:59:39.913 回答