COSDictionary.java (pdfbox-2.0.23-src) | : | COSDictionary.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 1004 | skipping to change at line 1004 | |||
* @param defaultValue The value returned if the entry is null. | * @param defaultValue The value returned if the entry is null. | |||
* | * | |||
* @return The entry converted to a boolean. | * @return The entry converted to a boolean. | |||
*/ | */ | |||
public boolean getBoolean(COSName firstKey, COSName secondKey, boolean defau ltValue) | public boolean getBoolean(COSName firstKey, COSName secondKey, boolean defau ltValue) | |||
{ | { | |||
boolean retval = defaultValue; | boolean retval = defaultValue; | |||
COSBase bool = getDictionaryObject(firstKey, secondKey); | COSBase bool = getDictionaryObject(firstKey, secondKey); | |||
if (bool instanceof COSBoolean) | if (bool instanceof COSBoolean) | |||
{ | { | |||
retval = ((COSBoolean) bool).getValue(); | retval = bool == COSBoolean.TRUE; | |||
} | } | |||
return retval; | return retval; | |||
} | } | |||
/** | /** | |||
* Get an integer from an embedded dictionary. Useful for 1-1 mappings. defa ult:-1 | * Get an integer from an embedded dictionary. Useful for 1-1 mappings. defa ult:-1 | |||
* | * | |||
* @param embeddedDictionary The name of the embedded dictionary. | * @param embeddedDictionary The name of the embedded dictionary. | |||
* @param key The key in the embedded dictionary. | * @param key The key in the embedded dictionary. | |||
* | * | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |