newoutlook wrote: > I was wondering how do I get the encoding for text string using iText API > before I interpret the text string.
Get the content stream of the page. Find the operator that changes the font and get the operand that refers to the font (e.g. /F1). Look for the corresponding entry in the page resources. Inspect the font dictionary referred to in the page resources for the encoding. Expect no further help than the above; as Leonard told you: stuff like 'content stream', 'font dictionary', etc... is explained in ISO-320000. Low-level methods to get a page's content stream, the resources dictionary, and so on, are explained in chapter 18 of the book "iText in Action". -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/