Last active
December 30, 2024 17:53
-
-
Save sidcha/344ef741ec7385e94f22df936d0dd71d to your computer and use it in GitHub Desktop.
Apple's Notes app can scan ID cards (front and back) very well; it produces a PDF file out of the scanned images. This PDF file is not suitable for printing on A4 size paper as the image spans the entire width. The following can be used to put both the front and back images in one A4-sized page which can be printed
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
# Requirements: | |
# - imagemagick | |
# - ghostscript | |
convert -density 300 notes_app_scanned_doc.pdf -gravity center -resize 1240x1754\> -background white -append -background white -splice 0x600 temp_combined.jpg | |
convert temp_combined.jpg -gravity center -extent 2480x3508 output.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment