use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class FDFPage method getTemplates.
/**
* This will get a list of FDFTemplage objects that describe the named pages that serve as templates.
*
* @return A list of templates.
*/
public List<FDFTemplate> getTemplates() {
List<FDFTemplate> retval = null;
COSArray array = (COSArray) page.getDictionaryObject(COSName.TEMPLATES);
if (array != null) {
List<FDFTemplate> objects = new ArrayList<FDFTemplate>();
for (int i = 0; i < array.size(); i++) {
objects.add(new FDFTemplate((COSDictionary) array.getObject(i)));
}
retval = new COSArrayList<FDFTemplate>(objects, array);
}
return retval;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class FDFCatalog method getFDF.
/**
* This will get the FDF dictionary.
*
* @return The FDF dictionary.
*/
public FDFDictionary getFDF() {
COSDictionary fdf = (COSDictionary) catalog.getDictionaryObject(COSName.FDF);
FDFDictionary retval;
if (fdf != null) {
retval = new FDFDictionary(fdf);
} else {
retval = new FDFDictionary();
setFDF(retval);
}
return retval;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class FDFCatalog method getSignature.
/**
* 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(COSName.SIG);
if (sig != null) {
signature = new PDSignature(sig);
}
return signature;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class FDFDictionary method getJavaScript.
/**
* This will get the java script entry.
*
* @return The java script entry describing javascript commands.
*/
public FDFJavaScript getJavaScript() {
FDFJavaScript fs = null;
COSDictionary dic = (COSDictionary) fdf.getDictionaryObject(COSName.JAVA_SCRIPT);
if (dic != null) {
fs = new FDFJavaScript(dic);
}
return fs;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class FDFField method getAppearanceDictionary.
/**
* This will get the appearance dictionary that specifies the appearance of a pushbutton field.
*
* @return The AP entry of this dictionary.
*/
public PDAppearanceDictionary getAppearanceDictionary() {
PDAppearanceDictionary retval = null;
COSDictionary dict = (COSDictionary) field.getDictionaryObject(COSName.AP);
if (dict != null) {
retval = new PDAppearanceDictionary(dict);
}
return retval;
}
Aggregations