Java program that extracts the text for each page in a PDF document and writes it to a file using Qoppa’s library jPDFText.

// Load the document
PDFText pdfText = new PDFText ("input.pdf", null);
// Loop through the pages
for (int pageIx = 0; pageIx < pdfText.getPageCount(); ++pageIx)
 // Get the text for the page
 String pageText = pdfText.getText(pageIx);
 // Save the text in a file
 FileWriter output = new FileWriter ("output_" + pageIx + ".txt");
'.$f->get_tpl_var('file_display_name',$e).' '.((($f->get_tpl_var('file_post_id',$e)) && get_the_ID() != ($f->get_tpl_var('file_post_id',$e)))?('» '.__(__('Post', 'wp-filebase')).''):('')).'
'.((($f->get_tpl_var('file_version',$e)))?(''.__(__('Version:', 'wp-filebase')).' '.$f->get_tpl_var('file_version',$e).'
'.$f->get_tpl_var('file_hits',$e).' '.__(__('Downloads', 'wp-filebase')).'
'.__(__('Details', 'wp-filebase')).'