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

Free Support Forum - aspose.com

Error in aspose.pdf 11.5

Dim _newPDF As New Aspose.Pdf.Document()
Dim _docInfo As New Aspose.Pdf.DocumentInfo(_newPDF)
_docInfo.Title = "fileName.docx.pdf"

Dim bd() As Byte = File.ReadAllBytes("C:\_brisi\NHD155952.docx")
Using result_Stream As New MemoryStream()
Dim aspose_Stream As New MemoryStream(bd)
Dim aspose_word As New Aspose.Words.Document(aspose_Stream)
aspose_word.Save(result_Stream, Aspose.Words.SaveFormat.Pdf)
Dim _bd() As Byte = result_Stream.ToArray
_newPDF.Pages.Add(New Aspose.Pdf.Document(New MemoryStream(_bd)).Pages)
aspose_Stream.Dispose()
End Using

_newPDF.Save("C:\_brisi\result.pdf", Aspose.Pdf.SaveFormat.Pdf)

error when "_newPDF.Pages.Add(..."
An unhandled exception of type 'System.NullReferenceException' occurred in Aspose.Pdf.dll

Additional information: Object reference not set to an instance of an object.

it was working in version 11.4

Hi there,

Thanks for your inquiry. I have tested your scenario with a sample document using Aspose.Pdf for .NET 11.5.0 and managed to observe the reported regression issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40622 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

Just wanted to confirm we also noticed this Pages.Add problem in Aspose.Pdf 11.5.


It is very common functionality many people uses. We will be very disapointed if Aspose let 11.6 come out with this issue.

Hi Robert,


Thanks for your patience.

We are pleased to share that the issue reported earlier is resolved and its fix will be included in upcoming release of Aspose.Pdf for .NET 11.6.0 which is scheduled to release in May-2016. As soon as the new release becomes available, we will let you know.

The issues you have found earlier (filed as PDFNEWNET-40622) have been fixed in Aspose.Pdf for .NET 11.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan