linkedinfacebooktwittermenuarrow-up

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:
https://www.gemboxsoftware.com/pdf/nightlybuilds/GBA17v1207.zip

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

Does this solve your issue?

Regards,
Mario

Yes, It’s all working now.

Thanks.
Dave