<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Sometimes I think of some neat things I've done over the years and
    just feel like sharing.<br>
    <br>
    Here are a few: (linux OS)<br>
    <font face="Courier New, Courier, monospace"><br>
      Merge PDFs into a single new PDF:<br>
      /usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite
      -sOutputFile=file_new.pdf file1.pdf file2.pdf<br>
      <br>
      Extract Pages from a PDF:<br>
      i.e. page 1-4<br>
      /usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=1
      -dLastPage=4 -sOutputFile=file_new.pdf file1.pdf<br>
      <br>
      Extract Pages from page # to end:   <br>
      /usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=2
      -sOutputFile=file_new.pdf file1.pdf<br>
      <br>
      Get the numbers of pages in a PDF:<br>
      /usr/bin/pdfinfo file1.pdf | grep "Pages:" | sed s/"Pages:"//g |
      sed s/" "//g<br>
      i.e.<br>
      8<br>
      <br>
      Get the Lat/Long from a JPG image:<br>
      exiftool -n -gpslatitude -gpslongitude file2.JPG<br>
      i.e.<br>
      GPS Latitude                    : 31.4998652777778<br>
      GPS Longitude                   : -100.448014444444</font><br>
    <br>
    I hope someone finds this useful.<br>
    <br>
    Be safe out there,<br>
    <br>
    Richard D. Williams<br>
    <br>
    <br>
    <font face="Courier New, Courier, monospace"></font><br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt=""  width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>