是否有任何好的教程,资源或样本可供查找?
Is there a way to replace a text in a PDF file with itextsharp?或多或少有相同的问题,但答案忽略了问题的“无Acrofield”部分.
编辑:
为了使它更难,我有多个模板,我可以使用.模板都有自己的格式样式(字体,颜色……)
编辑2:
目的是创建一个包含数据库中某些数据的报告.数据库中的数据来自ASP.NET MVC应用程序中的多种形式.
报告可能有多种布局,具体取决于所选的模板.
解决方法
In a PDF document,every character or glyph on a PDF page has its fixed position,regardless of the application that’s used to view the document.
[…]
Suppose you want to replace the word “edit” with the word “manipulate” in a sentence,you’d have to reflow the text. You’d have to reposition all the characters that follow that word. Maybe you’d even have to move a portion of the text to the next page. That’s not trivial,if not impossible.
[…]
Don’t expect any tool to be able to edit a PDF file the same way you’d edit a Word document.
PDF是文档显示格式.如果你想要模板,你可能不得不使用别的东西.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。