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 ARRAYAfter you have all files in PDF extension you can use this command to join all PDF files:
ARRAY=$(ls | grep .jpg | grep -v .pdf)
for i in $ARRAY; do
mv "$i" "$i.pdf"
done
$pdfjoin --outfile NAME.pdf *.pdf
You can install pdfjoin typing:
$sudo apt-get install pdfjoin
Enjoy ;-)
Sem comentários:
Enviar um comentário