How to read a PDF containing accented characters using iText?

0

I'm trying to read a PDF using this iText library, however, accented characters are ignored, I've already looked at the Project Encoding and it's like UTF-8 .

PdfReader reader = new PdfReader("arquivo.pdf");
String conteudo = PdfTextExtractor.getTextFromPage(reader,1);
System.out.println(conteudo);

Example:

  • Text in PDF: Exercícios
  • Output: Exerc cios
asked by anonymous 27.06.2015 / 17:08

0 answers