sexta-feira, 29 de janeiro de 2010

Download Books from Google to see offline

First you need to put the Google Book URL in this site.(All download instructions are in that site).

After you have all jpg files corresponding to pages of the book in your Linux computer you need to convert this files to PDF. You can run this script on your directory that contains all JPG files:
#!/bin/bash
declare -a ARRAY
ARRAY=$(ls | grep .jpg | grep -v .pdf)

for i in $ARRAY; do
    mv "$i" "$i.pdf"
done
After you have all files in PDF extension you can use this command to join all PDF files:

$pdfjoin --outfile NAME.pdf *.pdf



You can install pdfjoin typing:
$sudo apt-get install pdfjoin

Enjoy ;-)

Sem comentários:

Enviar um comentário