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

The following examples show how to use org.apache.pdfbox.cos.COSString#getString() . These examples are extracted from open source projects. 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 Project: gcs   File: PDFontDescriptor.java    License: 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 Project: gcs   File: PDFontDescriptor.java    License: 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 Project: coming   File: NPEfix17_seventeen_s.java    License: 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 Project: coming   File: NPEfix17_seventeen_t.java    License: 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 Project: gcs   File: PDVariableText.java    License: 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 Project: gcs   File: PDVariableText.java    License: 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();
}