这是我的代码
String soruce="E:\\PT\\iText\\TextBox.pdf";
String destination="E:\\PT\\iText\\TextBoxOP.pdf";
PdfReader reader = new PdfReader(soruce);
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(destination));
AcroFields form = stamper.getAcroFields();
form.setField("Text1", "Bruno Lowagie");
我需要 Bruno Lowagie在pdf文本字段中这样
答案 0 :(得分:0)
试试这个 下面是动作文件,借助我可以得到我需要的东西..
https://pranavom.wordpress.com/2011/03/15/modify-pdf-using-fpdffpdi-library/