<div dir="ltr">Great.<div>Thanks Even</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 17, 2023 at 5:13 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    Hi,
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
          <u>My question :</u><br>
          Is there a way to gdal_translate / gdalwarp the PDF file
          without EXPLICITLY extracting the neatline ?<br>
        </div>
      </div>
    </blockquote>
    No. Your above method is the nominal one.<br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I tried to use the "<b>-oo NEATLINE=something</b>" option :<br>
          gdal_translate -of GTiff -oo NEATLINE="POLYGON
          ((467455.095191925 4427281.84826825,467455.105581267
          4442204.97588751,479233.89727774
          4442204.58886474,479234.013428373
          4427281.65662041,467455.095191925 4427281.84826825))
          Boulder_400010515_FSTopo.pdf Boulder_400010515_FSTopo.pdf.tif<br>
        </div>
      </div>
    </blockquote>
    <p>This won't work. As documented, this must be a name of a
      "Measure" PDF object. This is in the case of a PDF with multiple
      georeferenced areas (like US with an Alaska or Hawaai inset map).
      And by itself, this will not crop the raster, but just expose the
      pointed Measure as the NEATLINE metadata.<br>
    </p>
    Even<span style="white-space:pre-wrap">
</span>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </div>

</blockquote></div>
<font style="font-size: 9px;">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</font>