Package org.chabanois.isbn.extractor

Examples of org.chabanois.isbn.extractor.PDFBoxTextExtractor


            if (filename.toLowerCase().endsWith("pdf")) {
               
                File file = new File(filename);
                FileISBNExtractor fileISBNExtractor = new FileISBNExtractor();
                fileISBNExtractor.setSearchMinBytes(30000);
                fileISBNExtractor.getTextReaderFactory().setPreferredPdfExtractor(new PDFBoxTextExtractor());
                ISBNCandidates isbnCandidates = fileISBNExtractor.getIsbnCandidates(file);
                org.chabanois.isbn.extractor.ISBN extractedISBN = isbnCandidates.getHighestScoreISBN();
               
                if (extractedISBN != null ) {
                    String s = extractedISBN.getIsbn();
View Full Code Here

TOP

Related Classes of org.chabanois.isbn.extractor.PDFBoxTextExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.