It's weird, on some pdf, the text are not rendered when I use SaveAsImage.
I can't provide a file since their are invoices and I'm pretty sure the accountants don't want me to spread invoices of the company online.
Anyone have an idea what it could be? Known bug?
Here's my method :
- Code: Select all
public static List<System.Drawing.Image> GetPagesAsImage(Stream inputFile)
{
var images = new List<Image>();
var doc = new Spire.Pdf.PdfDocument();
doc.LoadFromStream(inputFile);
for (var i = 0; i < doc.Pages.Count; i++)
{
images.Add(doc.SaveAsImage(i));
}
doc.Close();
return images;
}