Error when trying to concatenate PDF files that contains architectural PDF doc

Hi,

We have an issue when trying to concatenate pdf files that contains architectural PDF doc.
Below is our code.

var editor = new PdfFileEditor();
editor.CopyOutlines = false;
editor.CopyLogicalStructure = true;
editor.CorruptedFileAction = PdfFileEditor.ConcatenateCorruptedFileAction.StopWithError;
var packetTempFilePath = agendaFileTmpPath.Replace(".pdf", "_out1.pdf");
var result = editor.Concatenate(pdfFilesToConcatenateList.ToArray(), packetTempFilePath);

We got “Object reference not set to an instance of an object Object reference not set to an instance of an object” error.

This is the link of the file that cause the issue. It’s a 100MB+ file and contains architectural images.

It was working fine with Aspose.PDF.Drawing 22.12.0 version. We are planning to upgrade our Aspose to 24.8.0 but it has above issue.

Can you please help us on this one.
Thanks!

Johnrie

@jmagalso

We tested the case using below code sample and 24.12 version of the API and we could not replicate the issue that you have mentioned.

var doc1 = new Document();
doc1.Pages.Add();
doc1.Save(dataDir + "doc1.pdf");

var editor = new Facades.PdfFileEditor();
editor.CopyOutlines = false;
editor.CopyLogicalStructure = true;
editor.CorruptedFileAction = PdfFileEditor.ConcatenateCorruptedFileAction.StopWithError;
var result = editor.Concatenate(dataDir + "doc1.pdf", dataDir + "530f2351-a68d-473b-b6bf-d3c145170ee7.pdf", dataDir + "output.pdf");

Would you kindly try and use 24.12 version of the API and if issue still persists, please share your complete environment details and other information that we can use to reproduce the issue.