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:
- Change the file path after you run the application in the textbox (refer screenshot “file path.png”)
- 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 402This 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