title: Retrieving the URL properties of an image within a PDF
body: <p>I am trying to use itext to find an image within a pdf based on its URL.
  I know that when a pdf is composed in Adobe designer, that you can set its 'URL' from which the image is loaded.
  When the same pdf is opened again, the URL is preserved on the Image, so I know that that URL is preserved within the pdf. However, I cant seem to see anywhere where the URL is made available to itext.</p>
  
  <p>Even if you iterate through all the objects and find an image object using the code below.</p>
  
  <pre><code>iTextSharp.text.pdf.PdfReader reader = new iTextSharp.text.pdf.PdfReader(path);
  iTextSharp.text.pdf.PdfObject pdfObject = reader.GetPdfObject(objectIndex);
  </code></pre>
  
  <p>then iterate through the 'dictionary' values of the object:</p>
  
  <pre><code>PdfDictionary pdx=(PdfDictionary)pdfObject;
  foreach(PdfName name in pdx.Keys)
  {
      string value = pdx.Get(name).ToString();
      Debug.WriteLine("Object at index " + objectIndex + " has dict item " + name + " of value " + value);
  }
  </code></pre>
  
  <p>You can find the image objects inserted by Adobe Designer, but the objects dont have a URL item/property on them, even though the URL is obviously stored in the pdf file.</p>
  
  <p>Can anyone offer insight here?</p>
  
  <p>Thanks.
  Scott.</p>