title: ImageMagick.NET - Faster performance
body: <p>Im using the ImageMagick.NET library for C# and I want to get some informations from each page in a .PDF document. Here is my current code:</p>
  
  <pre><code>var list = new MagickImageCollection();
  list.Read(file.FullName);
  
  foreach (var page in list)
  {
      if (!backgroundWorker.CancellationPending)
      {
          pageCount.pageColorspace(page);
  
          isFormat(page.Width, page.Height);
  
          pageCount.incPdfPages();
      }
  }
  </code></pre>
  
  <p>But in my opinon the performance is really slow. It takes 4 minutes for 10 PDF - files with 703 pages. Is the a way to get it faster?</p>