We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is there a workaround ? Syncfusion.Pdf.Base => Exception thrown: 'System.NullReferenceException' in Syncfusion.Pdf.Base.dll

I got this code snippet:

//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//doc.PageSettings.Orientation = PdfPageOrientation.Landscape;

// Merges PDFDocument.
PdfDocument.Merge(doc, alleDateien.ToArray()); // Exceptions occurs here

//Save the document.
// diese wird mit dem Namen "!..." abgespeichert
doc.Save(Path.Combine(Initialise.Pfad_DownHere_OCR_Base, dateiName));
EntryPoint.CustomWriteLine("PDF: Schreibe Datei => " + dateiName);

//Close the document.

When I try to merge a pdf-file(The link will be valid for 7 days: https://send.firefox.com/download/01a1d82635503c39/#NKAtGzDoE4ekS8snYyKzsQ), I get an error :"Exception thrown: 'System.NullReferenceException' in Syncfusion.Pdf.Base.dll"

Source: Syncfusion.Pdf.Base
Version: 15.3460.0.26
Runtime Version: v4.0.30319

Is there a workaround ?

1 Reply

AV Abirami Varadharajan Syncfusion Team April 1, 2019 12:43 PM UTC

Hi Kevin, 
We are unable to reproduce the issue with the shared information. We request you to share the complete stack trace information to validate further on this. Also the shared file link is expired. So, it will be helpful if you share the valid link. 

Live Chat Icon For mobile
Up arrow icon