Dear Tung,
Thanks for your inquiry.
I have tested your case with the latest
Spire.PDF Pack(Hot Fix) Version:4.2.4 on my side, sorry that I didn't reproduce your issue,and I could extract image successfully.
Here is my testing code:
- Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(@"F:\5cd5a5ce-c89a-4a27-9200-76eb690c9db6.pdf");
PdfPageBase page = doc.Pages[0];
Image[] images = page.ExtractImages();
for (int i = 0; i < images.Length; i++)
{
Image pdfImage = images[i];
string imageFile = String.Format("12899-image{0}.png", i);
pdfImage.Save(imageFile, System.Drawing.Imaging.ImageFormat.Png);
}
Please make sure whether or not the uploaded file is the correct file which has the issue you mentioned. If so, please provide following information to help us reproduce your issue on my side.
1. The code you were using
2. The information of the latest version you mentioned, e.g. 4.2.4.2040
3. The OS and Region information, e.g. China/Chinese
Please note we don't have the plan to update Free version at present. All fixes and new features are only included in commercial version. Besides, our sales team has sent you a one-month free license of Spire.PDF to help remove the warning message and have a better evaluation on our product.
Sincerely,
Betsy
E-iceblue support team