/**
Gets the displayed text.
*/
public String getText()
{
PdfDirectObject baseDataObject = getBaseDataObject();
if(baseDataObject instanceof PdfArray) // <value,text> pair.
return (String)((PdfTextString)((PdfArray)baseDataObject).get(1)).getValue();
else // Single text string.
return (String)((PdfTextString)baseDataObject).getValue();
}