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

Free Support Forum - aspose.com

PDF to Tiff conversion error Null reference exception

Hello,

with the pdf attached to this post I receive this error:

System.NullReferenceException: Riferimento a un oggetto non impostato su un’istanza di oggetto.
in .?.?()
in .?.()
in Aspose.Pdf.PageCollection…ctor(Document )
in Aspose.Pdf.Document.()
in Aspose.Pdf.Document.(String , String )
in Aspose.Pdf.Document…ctor(String filename)

with this code:

Aspose.Pdf.Document oDoc = new Aspose.Pdf.Document(sFile);
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(200);

Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();

tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.LZW;

tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.Portait;
tiffSettings.SkipBlankPages = false;

Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);

tiffDevice.Process(oDoc, sFile + “.tif”);

I have tried also with the latest version 6.4.2

Can you help me?

Thank you.

Hi Christian,


I have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
PDFNEWNET-32014. We will investigate this
issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Hi Christian,



I would like to inform you that the fix for this issue (32014) will be
available in our upcoming monthly release due early next month. You’ll
be notified via this forum thread as soon as the release is available.



If you have any further questions, please do let us know.

Regards,

The issues you have found earlier (filed as PDFNEWNET-32014) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.