Java Code Examples for org.apache.pdfbox.cos.COSArray#getName()
The following examples show how to use
org.apache.pdfbox.cos.COSArray#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PDSeedValue.java From gcs with Mozilla Public License 2.0 | 6 votes |
/** * If <b>SubFilter</b> is not null and the {@link #isSubFilterRequired()} indicates this * entry is a required constraint, then the first matching encodings shall be used when * signing; otherwise, signing shall not take place. If {@link #isSubFilterRequired()} * indicates that this is an optional constraint, then the first matching encoding shall * be used if it is available. If it is not available, a different encoding may be used * instead. * * @return the subfilter that shall be used by the signature handler */ public List<String> getSubFilter() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.SUB_FILTER); if (fields != null) { List<String> actuals = new ArrayList<String>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getName(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<String>(actuals, fields); } return retval; }
Example 2
Source File: PDSeedValue.java From gcs with Mozilla Public License 2.0 | 6 votes |
/** * An array of names indicating acceptable digest algorithms to use when * signing. The value shall be one of <b>SHA1</b>, <b>SHA256</b>, <b>SHA384</b>, * <b>SHA512</b>, <b>RIPEMD160</b>. The default value is implementation-specific. * * @return the digest method that shall be used by the signature handler */ public List<String> getDigestMethod() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.DIGEST_METHOD); if (fields != null) { List<String> actuals = new ArrayList<String>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getName(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<String>(actuals, fields); } return retval; }
Example 3
Source File: FDFAnnotationLine.java From gcs with Mozilla Public License 2.0 | 5 votes |
/** * This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section. * * @return The ending style for the start point. */ public String getStartPointEndingStyle() { String retval = PDAnnotationLine.LE_NONE; COSArray array = (COSArray) annot.getDictionaryObject(COSName.LE); if (array != null) { retval = array.getName(0); } return retval; }
Example 4
Source File: FDFAnnotationLine.java From gcs with Mozilla Public License 2.0 | 5 votes |
/** * This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section. * * @return The ending style for the end point. */ public String getEndPointEndingStyle() { String retval = PDAnnotationLine.LE_NONE; COSArray array = (COSArray) annot.getDictionaryObject(COSName.LE); if (array != null) { retval = array.getName(1); } return retval; }
Example 5
Source File: FDFAnnotationPolyline.java From gcs with Mozilla Public License 2.0 | 5 votes |
/** * This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section. * * @return The ending style for the start point. */ public String getStartPointEndingStyle() { String retval = PDAnnotationLine.LE_NONE; COSArray array = (COSArray) annot.getDictionaryObject(COSName.LE); if (array != null) { retval = array.getName(0); } return retval; }
Example 6
Source File: FDFAnnotationPolyline.java From gcs with Mozilla Public License 2.0 | 5 votes |
/** * This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section. * * @return The ending style for the end point. */ public String getEndPointEndingStyle() { String retval = PDAnnotationLine.LE_NONE; COSArray array = (COSArray) annot.getDictionaryObject(COSName.LE); if (array != null) { retval = array.getName(1); } return retval; }