@Override void importFDF(FDFField fdfField) throws IOException { super.importFDF(fdfField); List<FDFField> fdfKids = fdfField.getKids(); List<PDField> children = getChildren(); for (int i = 0; fdfKids != null && i < fdfKids.size(); i++) { for (COSObjectable pdKid : children) { if (pdKid instanceof PDField) { PDField pdChild = (PDField) pdKid; FDFField fdfChild = fdfKids.get(i); String fdfName = fdfChild.getPartialFieldName(); if (fdfName != null && fdfName.equals(pdChild.getPartialName())) { pdChild.importFDF(fdfChild); } } } } }
/** * This method will import an entire FDF document into the PDF document * that this acroform is part of. * * @param fdf The FDF document to import. * * @throws IOException If there is an error doing the import. */ public void importFDF(FDFDocument fdf) throws IOException { List<FDFField> fields = fdf.getCatalog().getFDF().getFields(); if (fields != null) { for (FDFField field : fields) { FDFField fdfField = field; PDField docField = getField(fdfField.getPartialFieldName()); if (docField != null) { docField.importFDF(fdfField); } } } }
@Override public void importFDF(FDFField fdfField) throws IOException super.importFDF(fdfField);
@Override void importFDF(FDFField fdfField) throws IOException { super.importFDF(fdfField); List<FDFField> fdfKids = fdfField.getKids(); List<PDField> children = getChildren(); for (int i = 0; fdfKids != null && i < fdfKids.size(); i++) { for (COSObjectable pdKid : children) { if (pdKid instanceof PDField) { PDField pdChild = (PDField) pdKid; FDFField fdfChild = fdfKids.get(i); String fdfName = fdfChild.getPartialFieldName(); if (fdfName != null && fdfName.equals(pdChild.getPartialName())) { pdChild.importFDF(fdfChild); } } } } }
@Override void importFDF(FDFField fdfField) throws IOException { super.importFDF(fdfField); List<FDFField> fdfKids = fdfField.getKids(); List<PDField> children = getChildren(); for (int i = 0; fdfKids != null && i < fdfKids.size(); i++) { for (COSObjectable pdKid : children) { if (pdKid instanceof PDField) { PDField pdChild = (PDField) pdKid; FDFField fdfChild = fdfKids.get(i); String fdfName = fdfChild.getPartialFieldName(); if (fdfName != null && fdfName.equals(pdChild.getPartialName())) { pdChild.importFDF(fdfChild); } } } } }
/** * This method will import an entire FDF document into the PDF document * that this acroform is part of. * * @param fdf The FDF document to import. * * @throws IOException If there is an error doing the import. */ public void importFDF(FDFDocument fdf) throws IOException { List<FDFField> fields = fdf.getCatalog().getFDF().getFields(); if (fields != null) { for (FDFField field : fields) { FDFField fdfField = field; PDField docField = getField(fdfField.getPartialFieldName()); if (docField != null) { docField.importFDF(fdfField); } } } }
/** * This method will import an entire FDF document into the PDF document * that this acroform is part of. * * @param fdf The FDF document to import. * * @throws IOException If there is an error doing the import. */ public void importFDF(FDFDocument fdf) throws IOException { List<FDFField> fields = fdf.getCatalog().getFDF().getFields(); if (fields != null) { for (FDFField field : fields) { FDFField fdfField = field; PDField docField = getField(fdfField.getPartialFieldName()); if (docField != null) { docField.importFDF(fdfField); } } } }
@Override public void importFDF(FDFField fdfField) throws IOException super.importFDF(fdfField);
@Override public void importFDF(FDFField fdfField) throws IOException super.importFDF(fdfField);