- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
Convert Screenshot into PDF
        Wenliang ZHANG edited this page Nov 18, 2021 
        ·
        1 revision
      
    $ sudo apt install imagemagick $ sudo vim /etc/ImageMagick-6/policy.xml Add a line: <policy domain="coder" rights="read | write" pattern="PDF" /> $ convert -size 768x1024 *.png x.pdf $ cat mogrigy.sh #!/usr/bin/env bash start=897 end=922 left=460 top=170 right=0 bottom=150 for x in $(seq $start $end); do y="Screenshot ($x).png" echo $y mogrify -crop +$left+$top -crop -$right-$bottom +repage "$y" done
Created by Wenliang Zhang.