PdfFileEditor.Concatenate throws NullReferenceException

TaggedContentWithBrokenNumberTree.pdf (60.1 KB)

Hi,
When I use the attached Pdf to be concatenated, I get a NullReferenceException.

sample code:

  var sourceDocument1 = new Document("TaggedContentWithBrokenNumberTree.pdf");
  var sourceDocument2 = new Document("TaggedContentWithBrokenNumberTree.pdf");
  
  var targetDoc = new Document();
  var pdfFileEditor = new PdfFileEditor
  {
    AllowConcatenateExceptions = true,
    CopyLogicalStructure = true,
    CopyOutlines = true,
    KeepFieldsUnique = true,
    MergeDuplicateOutlines = true,
    OptimizeSize = false,
    IncrementalUpdates = true
  };
  pdfFileEditor.Concatenate(new[] { sourceDocument1, sourceDocument2 }, targetDoc);

best regards
Alex

@Alexander_Winkelmeyer,

I have observed issue you mentioned and have logged it as PDFNET-47952 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-47952) have been fixed in Aspose.PDF for .NET 21.8.