Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- INPUT_DIR=
- OUTPUT_DIR=
- OUTPUT_FILE=merge.pdf
- #INPUT DIR must contain the unzipped ebook file
- #unzip file.epub
- for i in $( ls $INPUT_DIR ); do
- echo $i
- wkhtmltopdf "$INPUT_DIR/$i" "$OUTPUT_DIR/$i".pdf
- done
- pdftk `ls "$OUTPUT_DIR"` cat output "$OUTPUT_FILE"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement