<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Carl,</p>
    <p>I don't have one such PDF at hand, but with one sample of the
      GDAL autotest suite:</p>
    <p>$ gdalinfo autotest/gdrivers/data/pdf/adobe_style_geospatial.pdf
      -mdd LAYERS<br>
      [...]<br>
      Metadata (LAYERS):<br>
        LAYER_00_NAME=New_Data_Frame<br>
        LAYER_01_NAME=New_Data_Frame.Graticule<br>
        LAYER_02_NAME=Layers<br>
        LAYER_03_NAME=Layers.Measured_Grid<br>
        LAYER_04_NAME=Layers.Graticule<br>
      [...]</p>
    <p>Programatically, you can get this list of layers with
      Dataset.GetMetadata("LAYERS")</p>
    <p>Then you can select layers you want to activate with the LAYERS
      open option:</p>
    <p>gdal_translate
      autotest/gdrivers/data/pdf/adobe_style_geospatial.pdf out.tif -oo
      LAYERS=New_Data_Frame.Graticule,Layers.Graticule</p>
    <p>or disable select ones with the LAYERS_OFF open option:</p>
    <p>gdal_translate
      autotest/gdrivers/data/pdf/adobe_style_geospatial.pdf out.tif -oo
      LAYERS_OFF=New_Data_Frame.Graticule,Layers.Graticule</p>
    <p>Programatically,</p>
    <p>gdal.Translate("out.tif", gdal.OpenEx("in.pdf", open_options = ["LAYERS=New_Data_Frame.Graticule,Layers.Graticule"])</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 25/03/2025 à 21:40, Carl Carlson via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:2AEBA991-A148-4B9D-A2AA-4F8A6FC94F1F@alumni.stanford.edu">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249);"><span
          style="font-kerning: none">I have almost no experience with
          GDAL or python, butI do have  57 years programming
          experience.  I need some help with GDAL.  At 79 I don’t have
          the time and energy to get deeply into these topics.  I need a
          quick solution</span></p>
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249); min-height: 22px;"><span
          style="font-kerning: none"></span><br>
      </p>
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249);"><span
          style="font-kerning: none">I am writing a program to copy
          selected layers from a 7.5’ USGS geospatial PDF Topo File and
          save them as geoTIFFs.  My efforts with gdalinfo,  gdal.Open,
          and gdal.Translate have led me nowhere worthwhile.  I can’t
          find the layers.  I just don’t know enough about this.</span></p>
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249); min-height: 22px;"><span
          style="font-kerning: none"></span><br>
      </p>
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249);"><span
          style="font-kerning: none">Would some kind person help me out
          with sample code?</span></p>
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249); min-height: 22px;"><span
          style="font-kerning: none"></span><br>
      </p>
      <p
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 18px; line-height: normal; font-family: "Helvetica Neue"; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-variant-emoji: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(33, 33, 33); background-color: rgb(249, 249, 249);"><span
          style="font-kerning: none">Thanks</span></p>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>