PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Error while reading pdf from onespan
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4532
Page 1 of 1

Author:  hkdoshi [ Wed Jan 10, 2024 12:08 pm ]
Post subject:  Error while reading pdf from onespan

Hi

I am trying to merger 2 pdf that are signed using onespan and eDocs and I am getting below error "Collection was modified; enumeration operation may not execute." while reading file

using (PdfDocument one = PdfReader.Open("C:\\Downloads\\EDoc.pdf", PdfDocumentOpenMode.Import))
using (PdfDocument two = PdfReader.Open("C:\\Downloads\\Page2.pdf", PdfDocumentOpenMode.Import))
using (PdfDocument outPdf = new PdfDocument())
{
CopyPages(one, outPdf);
CopyPages(two, outPdf);

outPdf.Save("C:\\Documents\\NewFileTest.pdf");
}

Can you please guide me how to fixed this issue
Thanks

Author:  Thomas Hoevel [ Wed Jan 10, 2024 12:46 pm ]
Post subject:  Re: Error while reading pdf from onespan

This issue is under investigation.
See also:
https://github.com/empira/PDFsharp/issu ... 2068282707

Will be fixed with the next version.
Does not occur when using .NET 6 instead of .NET 4.7.2.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/