Hi, I am trying to save only the first page of the PDF as an image using the code below in a .Net Core 5 project
GemBox.Pdf.ImageSaveOptions options = new GemBox.Pdf.ImageSaveOptions();
options.Format = GemBox.Pdf.ImageSaveFormat.Png;
options.PageCount = 1;
options.PageNumber = 0;
PdfDocument.Load("document.pdf").Save("Output.png", options);
But the Save throws the following exception:
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly ‘PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’. The system cannot find the file specified.
Source=GemBox.Pdf
Can you help me?