/** * This will tell if the AcroForm is a dynamic XFA form. * * @return true if the AcroForm is a dynamic XFA form */ public boolean xfaIsDynamic() { return hasXFA() && getFields().isEmpty(); }
/** * This will tell if the AcroForm is a dynamic XFA form. * * @return true if the AcroForm is a dynamic XFA form */ public boolean xfaIsDynamic() { return hasXFA() && getFields().isEmpty(); }
/** * This will tell if the AcroForm is a dynamic XFA form. * * @return true if the AcroForm is a dynamic XFA form */ public boolean xfaIsDynamic() { return hasXFA() && getFields().isEmpty(); }
private List<CosObject> getXFA() { org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form = (org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm) this.simplePDObject; if (form.hasXFA()) { COSBase value = form.getCOSObject().getDictionaryObject(COSName.XFA); boolean isStream = value instanceof COSStream; if (isStream || value instanceof COSArray) { ArrayList<CosObject> list = new ArrayList<>(MAX_NUMBER_OF_ELEMENTS); if (isStream) { list.add(new PBCosStream((COSStream) value, this.document, this.flavour)); } else { list.add(new PBCosArray((COSArray) value, this.document, this.flavour)); } return Collections.unmodifiableList(list); } } return Collections.emptyList(); } }