Java Code Examples for org.apache.pdfbox.cos.COSDictionary#getEmbeddedString()

The following examples show how to use org.apache.pdfbox.cos.COSDictionary#getEmbeddedString() . 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: PDEmbeddedFile.java    From gcs with Mozilla Public License 2.0 5 votes vote down vote up
/**
 * Get the mac subtype.
 *
 * @return The mac subtype.
 */
public String getMacSubtype()
{
    String retval = null;
    COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS );
    if( params != null )
    {
        retval = params.getEmbeddedString( "Mac", "Subtype" );
    }
    return retval;
}
 
Example 2
Source File: PDEmbeddedFile.java    From gcs with Mozilla Public License 2.0 5 votes vote down vote up
/**
 * Get the mac Creator.
 *
 * @return The mac Creator.
 */
public String getMacCreator()
{
    String retval = null;
    COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS );
    if( params != null )
    {
        retval = params.getEmbeddedString( "Mac", "Creator" );
    }
    return retval;
}
 
Example 3
Source File: PDEmbeddedFile.java    From gcs with Mozilla Public License 2.0 5 votes vote down vote up
/**
 * Get the mac ResFork.
 *
 * @return The mac ResFork.
 */
public String getMacResFork()
{
    String retval = null;
    COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS );
    if( params != null )
    {
        retval = params.getEmbeddedString( "Mac", "ResFork" );
    }
    return retval;
}