PDFExtractor e = new PDFExtractor(); String extractedText = e.extractText(source);
PDFTextStripper pts = new PDFTextStripper(); PDFParser parser = new PDFParser(source);  parser.parse();  COSDocument cos = parser.getDocument();  String extractedText = pts.getText(parser.getDocument());   cos.close();
    public InputStream getDestinationStream(InputStream source)        throws Exception    {        // get input stream from bitstream        // pass to filter, get string back        PDFExtractor e = new PDFExtractor();        String extractedText = e.extractText(source);        System.out.println(extractedText);        // generate an input stream with the extracted text        byte[] textBytes = extractedText.getBytes();        ByteArrayInputStream bais = new ByteArrayInputStream(textBytes);        return bais;  // will this work? or will the byte array be out of scope?    }