Thursday, 15 August 2013

Java iText - Get Font size and family of a text selected from a pdf file -


I am using the iText library to remove text content from a PDF file, then I inquired about a problem I'm writing to I will be able to extract all the text, but could not find a way to remove font styles.

First you need to read the answer to this question:

In this question , You will know that TextRenderInfo a getFont () method gives you the postScriptFontName to receive if you are in luck, then this PostScript fontname lets you know about style Will give

Note that this will not always work. Please read the answer to this question:

This question shows an example of a font that does not reveal anything about it.


No comments:

Post a Comment