some ideas from Corona Virus "Stay at Home" order
Richard D. Williams
richard at appgrp.net
Mon Mar 23 10:12:08 PDT 2020
Sometimes I think of some neat things I've done over the years and just
feel like sharing.
Here are a few: (linux OS)
Merge PDFs into a single new PDF:
/usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite
-sOutputFile=file_new.pdf file1.pdf file2.pdf
Extract Pages from a PDF:
i.e. page 1-4
/usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=1
-dLastPage=4 -sOutputFile=file_new.pdf file1.pdf
Extract Pages from page # to end:
/usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=2
-sOutputFile=file_new.pdf file1.pdf
Get the numbers of pages in a PDF:
/usr/bin/pdfinfo file1.pdf | grep "Pages:" | sed s/"Pages:"//g | sed s/"
"//g
i.e.
8
Get the Lat/Long from a JPG image:
exiftool -n -gpslatitude -gpslongitude file2.JPG
i.e.
GPS Latitude : 31.4998652777778
GPS Longitude : -100.448014444444
I hope someone finds this useful.
Be safe out there,
Richard D. Williams
--
This email has been checked for viruses by AVG.
https://www.avg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200323/3ebd008c/attachment.html>
More information about the Filepro-list
mailing list