Although I look through the source code for a few time,but I still don't know whether I can extract the format(like Bold or not) info about a string in a given pdf. It looks pdfbox can set some simple formats at creating time,can it return some format info at extracting time?

