PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 4:35 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jan 10, 2024 12:08 pm 
Offline

Joined: Wed Jan 10, 2024 11:50 am
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 10, 2024 12:46 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 375 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group