Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

PDF to PNG image generation takes too much time.

$
0
0
Hi,
I am using Aspose cells v10.3.0
In context of the attached PDF, if we try to generate PNG images, it takes approx 29s to convert a PDF page into PNG.

Here's the stack of time taken for attached PDF...

Processed page no. 1 Time taken 3307 ms
Processed page no. 2 Time taken 29368 ms
Processed page no. 3 Time taken 31543 ms
Processed page no. 4 Time taken 29828 ms
Processed page no. 5 Time taken 30847 ms

Here's the code snippet of generating PNG images..
......
PngDevice pngDevice = new PngDevice(resolution);
long startTym = System.currentTimeMillis();
pngDevice.process(pdfDocument.getPages().get_Item(pageIndex), imageStream);
long endtym = System.currentTimeMillis();
System.out.println("Processed page no. "+pageIndex+" Time taken "+String.valueOf(endtym-startTym)+" ms");
......

Can you please analyze this performance issue?

Thanks,
Jaspreet




Viewing all articles
Browse latest Browse all 3131

Trending Articles