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.