raf = new RandomAccessFile(file, "r");
FileChannel channel = raf.getChannel();
ByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());
pdffile = new PDFFile(buf);
pdffile.stop(1);
try {
book.setValue(Book._T_NROFPAGES, Long.valueOf(pdffile.getNumPages()));
Iterator<String> it = pdffile.getMetadataKeys();
while (it.hasNext()) {