Created
August 23, 2016 17:25
-
-
Save avesus/6dad56d7ba5cc9fa28c7d6da4600d044 to your computer and use it in GitHub Desktop.
Convert png to pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install imagemagick | |
# To rename files with spaces: | |
find -name "* *" -type f | rename 's/ /_/g' | |
ls page*.png | sort -n | tr '\n' ' ' | sed 's/$/\ mydoc.pdf/' | xargs convert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment