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:
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();
}
}
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?