Daniel, Yes, that getText( PDDocument ) is the method you should be using.
You no longer need to use a COSDocument object, please note the following methods that go along with the deprecation of getText( COSDocument ) PDFParser.getPDDocument() - to get a PDDocument instead of a COSDocument after parsing PDDocument.load() - A convenience method that does all the PDFParser stuff and returns a PDDocument LucenePDFDocument.getDocument() - to go straight from a File/URL to a lucene document object Ben Quoting Daniel Cortes <[EMAIL PROTECTED]>: > Ok I reply myself > the method deprecated is .getText(Cos Document)) > if you do stripper.getText(new PDDocument(cosDoc)) there isn't any problem. > > > Excuse me, for the question > > > Daniel Cortes wrote: > > > I've been use PDFBox in my indexation of a directory . I've download > > the last version of PDFBox (0.6.7.a) and I've seen that the method > > that I use to extract > > was a deprecated method. PDFTextStripper.getText(). > > stripper.getText(new PDDocument(cosDoc)); > > I know a lot of person use same me this method. What are alternative > > options ? > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]