/** * Returns the name of the person or authority signing the document. According to the PDF * specification, this value should be used only when it is not possible to extract the name * from the signature. * * @return the name */ public String getName() { return dictionary.getString(COSName.NAME); }
/** * This will retrieve the annotation state. * * @return the annotation state */ public String getState() { return annot.getString(COSName.STATE); }
/** * This will retrieve the annotation state model. * * @return the annotation state model */ public String getStateModel() { return annot.getString(COSName.STATE_MODEL); }
/** * This will retrieve the caption positioning. * * @return the caption positioning */ public String getCaptionStyle() { return annot.getString(COSName.CP); }
/** * Returns the name of the optional content group. * @return the name */ public String getName() { return dict.getString(COSName.NAME); }
/** * This will get the title of the document. This will return null if no title exists. * * @return The title of the document. */ public String getTitle() { return info.getString( COSName.TITLE ); }
/** * This will get the keywords of the document. This will return null if no keywords exists. * * @return The keywords of the document. */ public String getKeywords() { return info.getString( COSName.KEYWORDS ); }
/** * This will get the creator of the document. This will return null if no creator exists. * * @return The creator of the document. */ public String getCreator() { return info.getString( COSName.CREATOR ); }
/** * Returns the language for the document, or null. */ public String getLanguage() { return root.getString(COSName.LANG); }
/** * This will get the value of a custom metadata information field for the document. * This will return null if one is not found. * * @param fieldName Name of custom metadata field from pdf document. * * @return String Value of metadata field */ public String getCustomMetadataValue(String fieldName) { return info.getString( fieldName ); }
/** * This will return the label for the units. * * @return the label for the units */ public String getUnits() { return this.getCOSObject().getString("U"); }
/** * This is a convenience method that will get the dictionary object that is expected to be 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 getString(String key) { return getString(COSName.getPDFName(key)); }
/** * Get the title of this node. * * @return The title of this node. */ public String getTitle() { return getCOSObject().getString(COSName.TITLE); }
/** * This will retrieve the normal caption. * * @return the normal caption. */ public String getNormalCaption() { return this.getCOSObject().getString(COSName.CA); }
/** * Returns the alternate description (Alt). * * @return the alternate description */ public String getAlternateDescription() { return this.getCOSObject().getString(COSName.ALT); }
/** * This will retrieve the annotation state model. * * @return the annotation state model */ public String getStateModel() { return this.getCOSObject().getString(COSName.STATE_MODEL); }
/** * Returns the element identifier (ID). * * @return the element identifier */ public String getElementIdentifier() { return this.getCOSObject().getString(COSName.ID); }
/** * Returns the expanded form (E). * * @return the expanded form */ public String getExpandedForm() { return this.getCOSObject().getString(COSName.E); }
/** * Gets the alternate description (Alt). * * @return the alternate description */ public String getAlternateDescription() { return this.getProperties() == null ? null : this.getProperties().getString(COSName.ALT); }
/** * Gets the expanded form (E). * * @return the expanded form */ public String getExpandedForm() { return this.getProperties() == null ? null : this.getProperties().getString(COSName.E); }