Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Feb 09, 2017 10:42 am

I cannot convert some PDF Files to Images.

Here is my Code.

Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile(inputFile);
string fn = Path.GetFileNameWithoutExtension(inputFile);
for(int i=0;i<doc.Pages.Count;i++) {
Image img = doc.SaveAsImage(i);
string fn1 = String.Format("{0}_{1:0000}.bmp",fn,i+1);
string of = Path.Combine(outputFolder,fn1);
img.Save(of,System.Drawing.Imaging.ImageFormat.Png);
}

The PDF Files are uploaded as attachments.

emeusburger@infogate.ch
 
Posts: 8
Joined: Thu Dec 17, 2015 2:15 pm

Fri Feb 10, 2017 1:31 am

Hi,

Thanks for your inquiry.
Sorry that there are no attachments, we will appreciate it if you could send the sample files to us(support@e-iceblue.com) via email. And then we will update to you.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Feb 10, 2017 6:42 am

Hi,

Thanks for sending the file via email, we have received it.
And I have noticed the issue that some result images are blank, and posted it to our Dev team. We will inform you as soon as it is fixed. So sorry for inconvenience caused by us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Feb 24, 2017 5:33 am

Hi,

Thanks for waiting.
Now the issue has been resolved in Spire.PDF Pack(Hot Fix) Version:3.8.193, welcome to test it.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF