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