Sample Android program to extract text content from a PDF document as a String using Qoppa’s Android toolkit qPDF Toolkit. This program will extract the text from all pages of the PDF.

//must be called before utilizing qPDF Toolkit
StandardFontTF.mAssetMgr = getAssets();
 
//load the PDF document you want to extract text from
File file = new File(Environment.getExternalStorageDirectory(), "Documents/mydoc.pdf");
PDFDocument pdf = new PDFDocument(file.getAbsolutePath(), null);
 
// extract the text
String text = pdf.getText();
 
// Do something with the text...

Download Full Sample Code ExtractTextActivity.java