/** * Returns the filter. * @return the filter */ public String getFilter() { return dictionary.getNameAsString(COSName.FILTER); }
/** * The name of the software module that was used to create the signature. * @return the name of the software module */ public String getName() { return dictionary.getNameAsString(COSName.NAME); }
/** * Returns the numbering style for this page range. * * @return one of the STYLE_* constants */ public String getStyle() { return root.getNameAsString(KEY_STYLE); }
@Override public String getName() { return dict.getNameAsString(COSName.NAME); }
/** * This will get the name of the action to be performed. * * @return The name of the action to be performed. */ public String getN() { return action.getNameAsString("N"); }
/** * This will always return "Font" for fonts. * * @return The type of object that this is. */ public String getType() { return dict.getNameAsString(COSName.TYPE); }
/** * Returns the PDF specification version this document conforms to. * * @return the PDF version (e.g. "1.4") */ public String getVersion() { return root.getNameAsString(COSName.VERSION); }
/** * This will get the trapped value for the document. * This will return null if one is not found. * * @return The trapped value for the document. */ public String getTrapped() { return info.getNameAsString( COSName.TRAPPED ); }
/** * Returns the PostScript name of the font. */ public final String getBaseFont() { return dict.getNameAsString(COSName.BASE_FONT); }
/** * Returns true if this is an NChannel (PDF 1.6) color space. * @return true if this is an NChannel color space. */ public boolean isNChannel() { return "NChannel".equals(dictionary.getNameAsString(COSName.SUBTYPE)); }
/** * Gets the subtype (Subtype). * * @return the subtype */ public String getSubtype() { return this.getProperties().getNameAsString(COSName.SUBTYPE); }
/** * Get the non full screen page mode preference. * * @return the non full screen page mode preference. */ public String getNonFullScreenPageMode() { return prefs.getNameAsString( COSName.NON_FULL_SCREEN_PAGE_MODE, NON_FULL_SCREEN_PAGE_MODE.UseNone.toString()); }
/** * Get the ViewArea preference. See BOUNDARY enumeration. * * @return the ViewArea preference. */ public String getViewArea() { return prefs.getNameAsString( COSName.VIEW_AREA, BOUNDARY.CropBox.toString()); }
/** * Get the ViewClip preference. See BOUNDARY enumeration. * * @return the ViewClip preference. */ public String getViewClip() { return prefs.getNameAsString( COSName.VIEW_CLIP, BOUNDARY.CropBox.toString()); }
/** * returns the subtype of the external data dictionary. * * @return the subtype of the external data dictionary */ public String getSubtype() { return this.getCOSObject().getNameAsString(COSName.SUBTYPE); }
/** * This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. The default is * DRAFT. * * @return The name of this rubber stamp, see the NAME_XXX constants. */ public String getName() { return getCOSObject().getNameAsString(COSName.NAME, NAME_DRAFT); } }
/** * Set the highlight mode for when the mouse is depressed. See the HIGHLIGHT_MODE_XXX constants. * * @return The string representation of the highlight mode. */ public String getHighlightMode() { return getCOSObject().getNameAsString(COSName.H, HIGHLIGHT_MODE_INVERT); }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. Null is returned if the entry does not exist in the dictionary. * * @param key The key to the item in the dictionary. * @return The name converted to a string. */ public String getNameAsString(String key) { return getNameAsString(COSName.getPDFName(key)); }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. * * @param key The key to the item in the dictionary. * @param defaultValue The value to return if the dictionary item is null. * @return The name converted to a string. */ public String getNameAsString(String key, String defaultValue) { return getNameAsString(COSName.getPDFName(key), defaultValue); }
/** * Gets a name value. * * @param name the attribute name * @param defaultValue the default value * @return the name value */ protected String getName(String name, String defaultValue) { return this.getCOSObject().getNameAsString(name, defaultValue); }