How can I do a find & replace using PDFSharp?

丶灬走出姿态 提交于 2019-12-25 04:39:07

问题


I have a PDF file with 3 static place holders that I need to replace.

The place holders are using the following format:

[item1ToReplace] [item2ToReplace] [item3ToRepalce]

So my question is how can I read in the pdf, replace the values, and save a new pdf using PDFSharp, or a simliar opensource library?

Target language is C# on 3.5 framework.

Help is much appreciated.


回答1:


it looks like the problem has been talked about a little here http://forums.asp.net/t/1408202.aspx

they're using itextsharp http://itextsharp.sourceforge.net/ .



来源:https://stackoverflow.com/questions/1611127/how-can-i-do-a-find-replace-using-pdfsharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!