hi,
Below is an example that i picked up to try but when ever i parse a PDF with japanese text in it, i get all null for japanese text but get the english text and numbers correctly. below is the code.
public class PDF {
public PDF(
String fname) {
try {
InputStream in = new FileInputStream(fname);
StringWriter out = new StringWriter();
PDFTextStripper stripper = new PDFTextStripper();
PDFParser parser = new PDFParser( in );
parser.parse();
PDDocument document = parser.getPDDocument();
stripper.writeText(document,out);
rawText = out.toString();
document.close();
} catch (Exception exception) {
System.out.println("PDF error: " + exception);
exception.printStackTrace();
}
}
public String getText() { return rawText; }
private String rawText = "";
}
please suggest