Error occurs after PdfDocument.saveToFile: Object reference not set to an instance of an object
Maybe one of the source pdf has a permission password. would this be a problem?
\spire.pdf_11.2.4\BIN\NET4.0\Spire.Pdf.dll
used in .net framework 4.7.2 project
Dim fullFilenameL As String = "C:\Temp\out.pdf"
Dim newDocL As PdfDocument
newDocL = New PdfDocument()
newDocL.DocumentInformation.Creator = "xxx"
newDocL.DocumentInformation.Title = "yyyy"
For Each fileL As clsSpirePdfFileEntry In FileListM
Dim partDocL As New PdfDocument(fileL.FilenameFull)
newDocL.AppendPage(partDocL)
Next
' newDocL Document has 132 pages after the concatenation
newDocL.SaveToFile(fullFilenameL, FileFormat.PDF)
==>
Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt (Object reference not set to an instance of an object)
Stacktrace:
bei Spire.Pdf.Widget.PdfPageCollection.?(Int32 A_0, PdfPageBase A_1)
bei Spire.Pdf.PdfNewDocument.Save(Stream stream)
bei Spire.Pdf.PdfDocumentBase.Save(String fileName)
bei Spire.Pdf.PdfDocumentBase.Save(String fileName, FileFormat fileformat)