Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * This will set the FDF document.
  *
  * @param fdf The new FDF dictionary.
  */
 public void setFDF(FDFDictionary fdf) {
   catalog.setItem("FDF", fdf);
 }
Example #5
0
 /**
  * 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);
 }
Example #6
0
 /**
  * This will get the version that was specified in the catalog dictionary.
  *
  * @return The FDF version.
  */
 public String getVersion() {
   return catalog.getNameAsString("Version");
 }