Hi,
After upgrade to 2023.2.14 Some PDF files throw an exception when using the PdfDocument.Merge(PdfDocument[] docs) method.
Exception throw :
Quote:System.InvalidOperationException
HResult=0x80131509
Message=The LinkedList node does not belong to current LinkedList.
Source=System
Arborescence des appels de procédure :
at System.Collections.Generic.LinkedList`1.ValidateNode(LinkedListNode`1 node)
at System.Collections.Generic.LinkedList`1.Remove(LinkedListNode`1 node)
at EO.Internal.mknv.simz(mkok ctt)
at EO.Internal.mkdu.uqux(mknv qt, mkdu[] qu)
at EO.Internal.mknv.uqux(Boolean cul, Boolean cum)
at EO.Pdf.PdfDocument.uquy()
at EO.Pdf.PdfDocument.Merge(PdfDocument[] docs)
Snippet of the code that throws the exception :
Quote:
For Each file As String In files
Dim pdfToMerge As EO.Pdf.PdfDocument = New EO.Pdf.PdfDocument(filePath)
listDocument.Add(pdfToMerge)
Next
.....
outputDocument = EO.Pdf.PdfDocument.Merge(listDocument.ToArray())
We tested to downgrade to v22.279.0 and it works fine.
Thanks.