i use the current Aspose PDF for NET release with a test license and this sample to render PDF
pages to PNG image files.
It works but pngDevice.Process allocates more and more memory for each page.
For i = 1 To doc1.Pages.Count SourcePage = doc1.Pages(i) OutFile = "c:\temp\image" & i & ".png" Dim pngDevice As New PngDevice(resolution) pngDevice.RenderingOptions.UseNewImagingEngine = True pngDevice.Process(SourcePage, OutFile) pngDevice = Nothing SourcePage.Dispose() Next
It seems that pngDevice.Process doesn’t free up all internal ressources after writing the image to disk.