title: Can't use libpdf.dll with Visual Studio C# project
body: <p>I downloaded libpdf.dll and its dependencies from <a href="http://code.google.com/p/lib-pdf/downloads/list" rel="nofollow">http://code.google.com/p/lib-pdf/downloads/list</a></p>
  
  <p>Then I copied the dlls into "debug" folder within "bin" folder of project. Then, I added reference to libpdf.dll</p>
  
  <p>When I run sample code:</p>
  
  <pre><code>using (FileStream file = File.OpenRead(@"D:\test\pdfs\sample.pdf")) // in file
              {
                  var bytes = new byte[file.Length];
                  file.Read(bytes, 0, bytes.Length);
                  using (var pdf = new LibPdf(bytes))
                  {
                      byte[] pngBytes = pdf.GetImage(0, ImageType.PNG); // image type
                      using (var outFile = File.Create(@"D:\test\pdfs\file.png")) // out file
                      {
                          outFile.Write(pngBytes, 0, pngBytes.Length);
                      }
                  }
              }
  </code></pre>
  
  <p>I get the following error: </p>
  
  <blockquote>
    <p>A procedure imported by 'libpdf.dll' could not be loaded.
        Make sure that the file is a valid .Net Framework Assembly.</p>
  </blockquote>
  
  <p>How do I proceed on solving this error? How do I know which dll it is talking about??</p>