GemBox Support Forum

Error Merging Documents

Hello, I get this error when using document.Pages.Kids.AddClone(source.Pages) I used the code straight out of the sample.

PdfObject is already contained in some other PdfObject.
Parameter name: item

The odd thing is that it does add the pages and I can’t find anything missing. Also if I add the pages one at a time it works fine as well.

I will send files to Mario…

Hi Dave,

Please try again with this bugfix:

Or this NuGet package:
Install-Package GemBox.Pdf -Version 17.0.1207-hotfix

Does this solve your issue?


Yes, It’s all working now.