Value cannot be null. Parameter name: dictionary

Hi,

I am OCRing a 44-page document by splitting it 8 pages at a time . When I merge all pages back together, a static function PdfDocumentBase.Merge(PdfDocumentBase dest, PdfLoadedDocument src​throws an Exception "Value cannot be null. Parameter name: dictionary"


Here is the Stack Trace:

   at Syncfusion.Pdf.Parsing.PdfLoadedDocument.LoadDocument(Stream file)

   at Syncfusion.Pdf.Parsing.PdfLoadedDocument..ctor(Stream file)

   at Syncfusion.Pdf.PdfDocumentBase.Merge(String[] paths, PdfMergeOptions options)


I am using  liblept168.dll, SyncfusionTesseract.dll (v3.2) as OCR engine. Syncfusion dlls are Pdf.Base.dll (v19.3460.0.43), Syncfusion.OCRProcessor.Base.dll (v19.3460.0.43), Syncfusion.Compression.Base.dll ( v19.3460.0.43). 


1 Reply

SV Surya Venkatesan Syncfusion Team October 22, 2021 01:25 PM UTC

Hi Nikhil Baliga, 
 
Thank you for contacting Syncfuion support. 
 
We were tried to reproduce the reported issue with the provided details on our end. But its working properly, we can able to merge the OCRing split documents into single PDF document. We have attached the sample for your reference in which we are trying to reproduce the reported issue. please try the below sample on your end and let us know the result. 
 
 
We suspect that reported issue may be document specific. We request you to share the input document, output document and modified 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 to get more details,  
 
Regards, 
Surya V 


Loader.
Up arrow icon