We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting text format


Is it possible to get the Formatting properties of text

PdfExtractor.getFormattedText() supplies only text width and height and fails to provide more information such as Color or Font



Hi Shay,

I’m sorry to share with you that getFormattedText method returns an array of text segments. Each element of the array contains a text segment and its font size. I’m afraid, getting width and height of the text or color and font properties are not supported yet. We’ll have to log this new feature for our future versions; however, if you could share any further details regarding your requirement before I log it that would be helpful; for example, what other properties you’re interested in and how would you like to get these properties.

We’re sorry for the inconvenience.