Java Code Examples for org.apache.pdfbox.cos.COSString#getString()

The following examples show how to use org.apache.pdfbox.cos.COSString#getString() . 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: PDFontDescriptor.java    From gcs with Mozilla Public License 2.0 5 votes vote down vote up
/**
 * A string representing the preferred font family.
 *
 * @return The font family.
 */
public String getFontFamily()
{
    String retval = null;
    COSString name = (COSString)dic.getDictionaryObject( COSName.FONT_FAMILY );
    if( name != null )
    {
        retval = name.getString();
    }
    return retval;
}
 
Example 2
Source File: PDFontDescriptor.java    From gcs with Mozilla Public License 2.0 5 votes vote down vote up
/**
 * This will get the character set for the font.
 *
 * @return The character set value.
 */
public String getCharSet()
{
    String retval = null;
    COSString name = (COSString)dic.getDictionaryObject( COSName.CHAR_SET );
    if( name != null )
    {
        retval = name.getString();
    }
    return retval;
}
 
Example 3
Source File: NPEfix17_seventeen_s.java    From coming with MIT License 4 votes vote down vote up
/**
 * Get the default appearance.
 *
 * @return the DA element of the dictionary object
 */
public String getDefaultAppearance()
{
    COSString defaultAppearance = (COSString) dictionary.getItem(COSName.DA);
    return defaultAppearance.getString();
}
 
Example 4
Source File: NPEfix17_seventeen_t.java    From coming with MIT License 4 votes vote down vote up
/**
 * Get the default appearance.
 *
 * @return the DA element of the dictionary object
 */
public String getDefaultAppearance()
{
    COSString defaultAppearance = (COSString) dictionary.getItem(COSName.DA);
    return defaultAppearance.getString();
}
 
Example 5
Source File: PDVariableText.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Get the default appearance.
 * 
 * This is an inheritable attribute.
 * 
 * The default appearance contains a set of default graphics and text operators
 * to define the field’s text size and color.
 * 
 * @return the DA element of the dictionary object
 */
public String getDefaultAppearance()
{
    COSString defaultAppearance = (COSString) getInheritableAttribute(COSName.DA);
    return defaultAppearance.getString();
}
 
Example 6
Source File: PDVariableText.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Get the default style string.
 * 
 * The default style string defines the default style for
 * rich text fields.
 * 
 * @return the DS element of the dictionary object
 */
public String getDefaultStyleString()
{
    COSString defaultStyleString = (COSString) getCOSObject().getDictionaryObject(COSName.DS);
    return defaultStyleString.getString();
}