/** * This is a convenience method that will convert the value to a COSString object. If it is null then the object * will be removed. * * @param embedded The embedded dictionary to set the item in. * @param key The key to the object, * @param value The string value for the name. */ public void setEmbeddedString(String embedded, String key, String value) { setEmbeddedString(embedded, COSName.getPDFName(key), value); }
/** * Set the mac subtype. * * @param macSubtype The mac subtype. */ public void setMacSubtype( String macSubtype ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macSubtype != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "Subtype", macSubtype ); } }
/** * Set the mac Creator. * * @param macCreator The mac Creator. */ public void setMacCreator( String macCreator ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macCreator != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "Creator", macCreator ); } }
/** * Set the mac ResFork. * * @param macResFork The mac ResFork. */ public void setMacResFork( String macResFork ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macResFork != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "ResFork", macResFork); } }
/** * This is a convenience method that will convert the value to a COSString object. If it is null then the object * will be removed. * * @param embedded The embedded dictionary to set the item in. * @param key The key to the object, * @param value The string value for the name. */ public void setEmbeddedString(String embedded, String key, String value) { setEmbeddedString(embedded, COSName.getPDFName(key), value); }
/** * This is a convenience method that will convert the value to a COSString object. If it is null then the object * will be removed. * * @param embedded The embedded dictionary to set the item in. * @param key The key to the object, * @param value The string value for the name. */ public void setEmbeddedString(String embedded, String key, String value) { setEmbeddedString(embedded, COSName.getPDFName(key), value); }
/** * Set the mac Creator. * * @param macCreator The mac Creator. */ public void setMacCreator( String macCreator ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macCreator != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "Creator", macCreator ); } }
/** * Set the mac ResFork. * * @param macResFork The mac ResFork. */ public void setMacResFork( String macResFork ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macResFork != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "ResFork", macResFork); } }
/** * Set the mac subtype. * * @param macSubtype The mac subtype. */ public void setMacSubtype( String macSubtype ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macSubtype != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "Subtype", macSubtype ); } }
/** * Set the mac Creator. * * @param macCreator The mac Creator. */ public void setMacCreator( String macCreator ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macCreator != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "Creator", macCreator ); } }
/** * Set the mac ResFork. * * @param macResFork The mac ResFork. */ public void setMacResFork( String macResFork ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macResFork != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "ResFork", macResFork); } }
/** * Set the mac subtype. * * @param macSubtype The mac subtype. */ public void setMacSubtype( String macSubtype ) { COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject( COSName.PARAMS ); if( params == null && macSubtype != null ) { params = new COSDictionary(); getCOSObject().setItem( COSName.PARAMS, params ); } if( params != null ) { params.setEmbeddedString( "Mac", "Subtype", macSubtype ); } }