Skip to content

Instantly share code, notes, and snippets.

@carloshm
Created September 13, 2022 08:17
Show Gist options
  • Save carloshm/1fd5bdcb752a1e5ed74f94b8b48155d1 to your computer and use it in GitHub Desktop.
Save carloshm/1fd5bdcb752a1e5ed74f94b8b48155d1 to your computer and use it in GitHub Desktop.
#install/check dependencies for Ubuntu
sudo apt install poppler-utils
# convert -version
sudo apt install imagemagick
# create images from pdf
pdftoppm -png inclusive_toolkit_activities.pdf document
# mirror in the vertical axis:
# mogrify -flip *.png
# mirror in the horizontal axis:
mogrify -flop *.png
convert document*.png inclusive_toolkit_activities-mirrored.pdf
@carloshm
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment