Hi,
Thank you for contacting Syncfusion support.
We have checked with the issue which you have mentioned. In older version by default we have perform merge function by clone each and every objects from existing PDF document and dispose it. But effective from product version 17.1.0.32, we did not process the above. The existing PDF document will dispose only after saving of merged PDF document. So as per the provided stack trace we suspect that the issue will occurs due to this. So please set true to “EnableMemoryOptimization” of PDF document.
Please refer the below KB link to know more about “EnableMemoryOptimization” property,
Please try the above code snippet in your end and let us know if it solves the issue. If still you have faced the issue, please share us the PDF documents. It will helpful for us to provide the precise solution on this.
Regards,
Sowmiya L