title: Is it possible to create an image library in iTextsharp?
body: <p>I would like to know if it's possible to add the images to a PDF using iTextsharp in such a way that you don't necessarily add the images directly onto the page, but instead first add them into a library and then you reference the library as required in your PDF.</p>
  
  <p>The advantage of this approach is that if you re-use the same image it will no longer add an exact duplicate of the image into the PDF but just re-use the current copy of the image.</p>
  
  <p>I have done some tests so far:</p>
  
  <pre><code>Actual image size: 102kB
  1 copy of the image in the PDF + other text: 259kB
  2 copies of the image in the PDF + other text: 481kB
  3 copies...: 704kB
  4 copies...: 926kB
  </code></pre>
  
  <p>From this it's clear that the PDF isn't smart enough to know that I'm re-using the same image and simply referencing it. It would be truly great if it could be...</p>