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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

143620 Mar 29,2019 06:54 AM UTC Apr 1,2019 12:43 PM UTC ASP.NET MVC - EJ 2 1
loading
Tags: PDF
Kevin Hard
Asked On March 29, 2019 06:54 AM UTC

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.
doc.Close(true);

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 ?

Abirami Varadharajan [Syncfusion]
Replied On 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. 
 
Regards, 
Abirami 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon