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();
if (s != null && s.length() > 0)
book.setValue(Book._N_ISBN13, ISBN.isISBN10(s) ? ISBN.getISBN13(s) :