title: Export Illustrator Vector Image From PDF Using C#
body: <p>I have a pdf that contains a vector image. I asked the client about it, and they said that they created the image in Illustrator and saved it as a pdf. Is there a way I can extract that image and convert it into a png? I've tried code from the following:</p>
  
  <p><a href="https://stackoverflow.com/questions/5945244/extract-image-from-pdf-using-itextsharp">Extract image from PDF using itextsharp</a></p>
  
  <p><a href="http://www.vbforums.com/showthread.php?530736-2005-Extract-Images-from-a-PDF-file-using-iTextSharp" rel="nofollow noreferrer">http://www.vbforums.com/showthread.php?530736-2005-Extract-Images-from-a-PDF-file-using-iTextSharp</a></p>
  
  <p>and a couple of other links that I can't find, but they all don't seem to work. My theory is that they are extracting embedded images like jpegs, bmps, pngs, etc., but what I am faced with is a direct export from illustrator.</p>
  
  <p>Should I be using an illustrator sdk or is there a way for me to do it using itextsharp? Also, I need to convert it to a standard image format, like png, and send the stream to a calling app, so I'll need to be able to grab stream. </p>