Hello,
When converting any PDF larger than .4 MB, we are consistently getting out of memory exceptions from the Aspose convert function. The pdf's we are trying to convert are engineering drawings. Please advise what we can do to fix this, as the current limitation in file size renders this software unusable for us. Thank you.
For reference, the code we are using is the standard convert function:
Using imageStream As New FileStream(dataDir & "Aspose" & pageCount & ".jpg", FileMode.Create)
'create JPEG device with specified attributes
'Width, Height, Resolution, Quality
'Quality [0-100], 100 is Maximum
'create Resolution object
Dim resolution As New Resolution(300)
'JpegDevice jpegDevice = new JpegDevice(500, 700, resolution, 100);
Dim jpegDevice As New JpegDevice(resolution, 100)
'convert a particular page and save the image to stream
jpegDevice.Process(pdfDocument.Pages(pageCount), imageStream)
'close stream
imageStream.Close()
End Using
Stack trace is attached. Please advise on a solution. Thanks.