//create a tmp output stream with the size of the content.
ByteArrayOutputStream out = new ByteArrayOutputStream();
OutputStreamWriter writer = new OutputStreamWriter( out );
PDFTextStripper stripper = new PDFTextStripper();
stripper.writeText( pdfDocument.getDocument(), writer );
writer.close();
byte[] contents = out.toByteArray();
InputStreamReader input = new InputStreamReader( new ByteArrayInputStream( contents ) );
// Add the tag-stripped contents as a Reader-valued Text field so it will