We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting PDF's to images with version

Hi, I’m trying out the new version of aspose.pdf.kit. In the old version I used:the code below. However, ForceTiffProcessing is no longer valid. That line of code made the old conversions very fast and avoided memory leaks. One file in particular I couldn’t open at all without that line. Now, without that line, I have all the same old problems - incredibly slow, memory leaks, failures, etc. Hopefully, there’s a new, improved way of doing these conversions!

convPDF = new PdfConverter();
convPDF.ForceTiffProcessing = TiffProcessingMode.Complete;
ms = new MemoryStream();

convPDF.StartPage = intPage;
convPDF.EndPage = intPage;

if (convPDF.HasNextImage())
convPDF.GetNextImage(ms, System.Drawing.Imaging.ImageFormat.Bmp);
bmp = (Bitmap)System.Drawing.Image.FromStream(ms);

This message was posted using Page2Forum from PdfConverter.SaveAsTIFF Method (String, CompressionType) - Aspose.Pdf.Kit for .NET

Hi Larry,

First of all, I’m sorry to share that I couldn’t understand what you mean by “ForceTiffProcessing is no longer valid”; could you please elaborate it?

Secondly, can you please try to use the latest version (4.7.0) and see the results with that? Also, the new version 4.8.0 will be published at the end of this week.

Lastly, if the latest version doesn’t help either then please share a sample PDF file with us, so we could reproduce the issue at our end and fix it.

We’re sorry for the inconvenience and looking forward to help you out.