Aspose PDF's Save function throwing exception

Hi,

We are trying to replace one of our existing pdf tool (Debenu QuickPDF) with Aspose.PDF from more than a year now. We started with version “21.11.0” and were stuck with “Out of Memory” issues when we use the Aspose.Pdf to stitch large number of pdfs(>8000). This issue is not resolved, still under investigation though.

We have recently purchased the license (under the name of Investment Metrics).

Now, it’s almost more than a year, we are planning to give it a try for one more time. We downloaded your latest version which is “v23.9.0” and trying to run the same sample that we have been using earlier. But we are getting an exception stated below. Please let us know the cause and fix for this issue. Please note that, when i run the same sample with “v23.8.0”, it works fine. We would like to go with the latest version at this point of time and this issue looks like a bug to me, since it is working in the previous version.

Here is the attached sample project where we have reproduced it.
AsposePDF-SaveFile-NullException.zip (940.4 KB)

Please let us know if you need anything from us and provide a fix as soon as you can.

Note:

  1. Change the file path after you run the application in the textbox (refer screenshot “file path.png”)
  2. License file and all DLLs has been removed to make the file size less.

Exception Details:

System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Aspose.PDF
StackTrace:
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zFNgN_5XXbBNTxHHTsBxU_PU=(Object #=zca7DObg=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z3cAKxtdpBoacPTeI3Ce0LUoviXFzSND3uWMc0QQvzYjy()
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zpvR_0vw$qcUkwh1UMz3E6_g4tTNXIE6XXg==(Object #=zca7DObg=, UInt32 #=z4CS35XU=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z1FlCQu_7x1Oe09s1xDnyhMt_OU_U(Boolean #=zca7DObg=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z1FlCQu_7x1Oe09s1xDnyhMt_OU_U(Boolean #=zca7DObg=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zEXb$sdzIYhZaGkYGIvm1iAY=()
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z9rVoQxpjvYEeG7Zt06beQ8k=(Object[] #=zca7DObg=, Type[] #=z4CS35XU=, Type[] #=zjmFaA1o=, Object[] #=zf_I0C9s=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zw_cqpskdXMJ4q6Radw==(Stream #=zca7DObg=, String #=z4CS35XU=, Object[] #=zjmFaA1o=, Type[] #=zf_I0C9s=, Type[] #=zorAQwJ0=, Object[] #=zWGZiNWE=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zVWW_P45iRyLfSzpv_kFk_WTV$dbmtQWULQ==(Stream #=zca7DObg=, String #=z4CS35XU=, Object[] #=zjmFaA1o=)
at #=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zdeF1bbrh4bAie1j$lQVigFpZ$JI$3XUS8g==(Stream #=zca7DObg=, String #=z4CS35XU=, Object[] #=zjmFaA1o=)
at Aspose.Pdf.Document.#=zqERRmyY5EnNE(Stream #=zZt2EX98=, SaveOptions #=zDrH$9qVYCr8I)
at Aspose.Pdf.Document.#=zJ900Fuz2x9sm(String #=zAHFkVQn4qMnZ)
at Aspose.Pdf.Document.Save(String outputFileName)
at InvMetrics.Paris.ReportOutput.BookPDFManagerAspose.CopyPDFDocumentToFile(Document pdfDocumentToCopy, String pdfFileName) in C:\psv\E Drive\a Temp Desktop\QuickPDF Upgrade\TFS 2281 - QuickPDF Upgrade Or Replace\Support\AsposePDF_Sample\AsposePDF_Sample\AsposePDF_Sample\BookPDFManagerAspose.cs:line 402

This exception was originally thrown at this call stack:
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zFNgN_5XXbBNTxHHTsBxU_PU=(object)
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z3cAKxtdpBoacPTeI3Ce0LUoviXFzSND3uWMc0QQvzYjy()
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zpvR_0vw$qcUkwh1UMz3E6_g4tTNXIE6XXg==(object, uint)
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z1FlCQu_7x1Oe09s1xDnyhMt_OU_U(bool)
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z1FlCQu_7x1Oe09s1xDnyhMt_OU_U(bool)
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zEXb$sdzIYhZaGkYGIvm1iAY=()
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=z9rVoQxpjvYEeG7Zt06beQ8k=(object[], System.Type[], System.Type[], object[])
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zw_cqpskdXMJ4q6Radw==(System.IO.Stream, string, object[], System.Type[], System.Type[], object[])
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zVWW_P45iRyLfSzpv_kFk_WTV$dbmtQWULQ==(System.IO.Stream, string, object[])
#=q_aFvMlQ311yAu7rkMoSj69IEVEU4SLADCerfLtfiX3o=.#=zdeF1bbrh4bAie1j$lQVigFpZ$JI$3XUS8g==(System.IO.Stream, string, object[])

[Call Stack Truncated]

Thanks,
Prathap

@PrathapSV

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55633

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thanks for the update.

We are aware that “Free Support” is on “first come first serve basis”, but based on the tickets you have internally at this point of time, is it possible for you to provide an ETA on this?

Regards,
Prathap

@PrathapSV

We will be able to provide some ETA on internal basis, once analysis of the ticket is done. At the moment, the ticket is pending for the investigation. As soon as it is investigated, we will be able to share some information about its fix ETA. Please be patient and spare us some time.

We apologize for the inconvenience.

Hi,

Any update on this issue?

@PrathapSV

We are afraid that the earlier logged ticket has not been yet resolved. As soon as we have some news about its resolution ETA, we will share with you in this forum thread. Please be patient and spare us some time.

We are sorry for the inconvenience.