if (element != null) PDField field = PDField.fromDictionary(this, element, null); if (field != null)
continue; PDField field = PDField.fromDictionary(getAcroForm(), (COSDictionary) kid, this); if (field != null)
if (name[nameIndex].equals(kidDictionary.getString(COSName.T))) retval = PDField.fromDictionary(acroForm, kidDictionary, (PDNonTerminalField)this); if (retval != null && name.length > nameIndex + 1)
if (element != null) PDField field = PDField.fromDictionary(this, element, null); if (field != null)
if (element != null) PDField field = PDField.fromDictionary(this, element, null); if (field != null)
/** * Returns this field's children. These may be either terminal or non-terminal fields. * * @return the list of child fields. Be aware that this list is <i>not</i> backed by the * children of the field, so adding or deleting has no effect on the PDF document until you call * {@link #setChildren(java.util.List) setChildren()} with the modified list. */ public List<PDField> getChildren() { //TODO: why not return a COSArrayList like in PDPage.getAnnotations() ? List<PDField> children = new ArrayList<>(); COSArray kids = (COSArray)getCOSObject().getDictionaryObject(COSName.KIDS); for (int i = 0; i < kids.size(); i++) { COSBase kid = kids.getObject(i); if (kid instanceof COSDictionary) { PDField field = PDField.fromDictionary(getAcroForm(), (COSDictionary) kid, this); if (field != null) { children.add(field); } } } return children; }
continue; PDField field = PDField.fromDictionary(getAcroForm(), (COSDictionary) kid, this); if (field != null)
if (name[nameIndex].equals(kidDictionary.getString(COSName.T))) retval = PDField.fromDictionary(acroForm, kidDictionary, (PDNonTerminalField)this); if (retval != null && name.length > nameIndex + 1)
if (name[nameIndex].equals(kidDictionary.getString(COSName.T))) retval = PDField.fromDictionary(acroForm, kidDictionary, (PDNonTerminalField)this); if (retval != null && name.length > nameIndex + 1)