Merge PDF Documents. Got error 'Value cannot be null. Parameter name: dictionary'

Hi,

I replaced a new pdf doc in the folder. When the code try to merge that pdf to the main doc, the code display 'Value cannot be null. Parameter name: dictionary' error at line PdfDocument.Merge() line.


I tried with the old doc and the same code works fine. Is there something wrong with the document itself? If so, how can I change that to prevent this error?


Thanks,

Kevin


1 Reply

GK Gowthamraj Kumar Syncfusion Team July 5, 2022 12:38 PM UTC

Hi Kevin,

We suspect that reported issue may be document specific. We request you to share the input document and complete code snippet with sample to replicate the reported issue on our end. So, that it will be helpful for us to analyse and assist you further on this.


Kindly refer the below link for more information about merging PDF,

https://help.syncfusion.com/file-formats/pdf/merge-documents#best-practices

https://www.syncfusion.com/blogs/post/6-easy-ways-to-split-a-pdf-document-using-c.aspx


Regards,

Gowthamraj K


Loader.
Up arrow icon