d how to get Fully Qualified Name of duplicate fields in pdfbox

匆匆过客 提交于 2019-12-08 08:01:49

问题


File file = new File("E:/kamlesh/PdfBox/field name test.pdf");
PDDocument doc = PDDocument.load(file);
PDAcroForm form = doc.getDocumentCatalog().getAcroForm();
List<PDField> fields = form.getFields();
for (int i=0; i<fields.size(); i++) {
    PDField f = fields.get(i);
    System.out.println(f.getFullyQualifiedName());

}

output: its getting once if same field is used in multiple time.. need: if same field qualified name is coming mutiple time then display mutiple time..

来源:https://stackoverflow.com/questions/44816401/d-how-to-get-fully-qualified-name-of-duplicate-fields-in-pdfbox

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