This represents an FDF catalog that is part of the FDF document.
Method from org.apache.pdfbox.pdmodel.fdf.FDFCatalog Detail: |
public COSDictionary getCOSDictionary() {
return catalog;
}
Convert this standard java object to a COS object. |
public COSBase getCOSObject() {
return catalog;
}
Convert this standard java object to a COS object. |
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 get the FDF dictionary. |
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 signature or null if there is none. |
public String getVersion() {
return catalog.getNameAsString( "Version" );
}
This will get the version that was specified in the catalog dictionary. |
public void setFDF(FDFDictionary fdf) {
catalog.setItem( "FDF", fdf );
}
This will set the FDF document. |
public void setSignature(PDSignature sig) {
catalog.setItem( "Sig", sig );
}
This will set the signature that is associated with this catalog. |
public void setVersion(String version) {
catalog.setName( "Version", version );
}
This will set the version of the FDF document. |
public void writeXML(Writer output) throws IOException {
FDFDictionary fdf = getFDF();
fdf.writeXML( output );
}
This will write this element as an XML document. |