/** * This will get the signature or null if there is none. * * @return The signature. */ public PDSignature getSignature() { PDSignature signature = null; COSDictionary sig = (COSDictionary) catalog.getDictionaryObject("Sig"); if (sig != null) { signature = new PDSignature(sig); } return signature; }
/** * This will get the FDF dictionary. * * @return The FDF dictionary. */ public FDFDictionary getFDF() { COSDictionary fdf = (COSDictionary) catalog.getDictionaryObject("FDF"); FDFDictionary retval = null; if (fdf != null) { retval = new FDFDictionary(fdf); } else { retval = new FDFDictionary(); setFDF(retval); } return retval; }
/** * This will set the signature that is associated with this catalog. * * @param sig The new signature. */ public void setSignature(PDSignature sig) { catalog.setItem("Sig", sig); }
/** * This will set the FDF document. * * @param fdf The new FDF dictionary. */ public void setFDF(FDFDictionary fdf) { catalog.setItem("FDF", fdf); }
/** * This will set the version of the FDF document. * * @param version The new version for the FDF document. */ public void setVersion(String version) { catalog.setName("Version", version); }
/** * This will get the version that was specified in the catalog dictionary. * * @return The FDF version. */ public String getVersion() { return catalog.getNameAsString("Version"); }