Hi all,
I am writing a small C# console application that exports the first page of a PDF document to Bitmap.
The code I use is pretty simple but it takes a reasonable time to complete even for small pdf files. Since it’s a real-time application launced to get a bitmap of a pdf file selected via a GUI, I need to understand whether it can be improved. Maybe the source code I used is too simple?!
Please have a look here:
doc = new Document(inputFile);
// create an object of bmpDevice
Aspose.Pdf.Devices.Resolution pageRes = new Aspose.Pdf.Devices.Resolution(72);
var renderer = new Aspose.Pdf.Devices.BmpDevice(Aspose.Pdf.PageSize.A4, pageRes);
renderer.Process(doc.Pages[1], outputFile);
Thank you for any help!
Kind regards,
Silvio