Problem load Pdf generate with PDFsharpNetStandard2

Hello,

I'have a problem to load all pdf generated with ITEXTSHARP, I send you a sample to reproduce :

When you start the sample click on this item menu


And the pdf load with this error :


The pdf is contain in the client project ressources 
directory : OUT_000010.pdf

Thanks for your help
Nicolas

6 Replies 1 reply marked as answer

NN Nicolas NOEL April 1, 2021 08:05 AM UTC

Sorry it's with the library PDFsharpNetStandard2 not ITEXTSHARP

And the sample code in attachement 
Nicolas

Attachment: BlazorAppPOC__Bug_ItextSharp_PDF_ef6598b5.zip


DM Dhivyabharathi Mohan Syncfusion Team April 2, 2021 10:41 AM UTC

Hi Nicolas, 
 
 
We were able to reproduce the reported issue with the sample which you have shared. We will analyze further and provide details on April 7th, 2021. 
 
 
Regards, 
Dhivya. 



SM Selvakumar Murugan Syncfusion Team April 7, 2021 05:26 PM UTC

Hi Nicolas, 

Sorry for the Inconvenience. 

Currently we are checking on this with high priority. We will provide further details on 12th April 2021. 

Regards,
Selvakumar 



DM Dhivyabharathi Mohan Syncfusion Team April 12, 2021 10:55 AM UTC

Hi Nicolas, 
 
We can able to replicate the issue with our previous version. But we have resolved the reported issue internally in our end and it will be available on 14 April 2021 weekly NuGet release. We suggest to modify the code-snippet for loading the PDF document with in the location.  
 
 
        //Gets the path of the PDF document 
        private string GetDocumentPath(string document) 
        { 
            string documentPath = string.Empty; 
            if (!System.IO.File.Exists(document)) 
            { 
                var path = _hostingEnvironment.ContentRootPath.Replace("Server", "Client");//Le replace est temporaire je sais pas pourquoi c'est client maintenant 
                if (System.IO.File.Exists(path + "/wwwroot/" + document)) 
                    documentPath = path + "/wwwroot/" + document; 
            } 
            else 
            { 
                documentPath = document; 
            } 
            Console.WriteLine(documentPath); 
            return documentPath; 
        } 
 
Kindly try this and revert us, if you have any concerns. 
 
Regards, 
Dhivya. 


Marked as answer

NN Nicolas NOEL April 15, 2021 12:25 PM UTC

Hi Dhivya,

I test the new version 19.1.0.56 with the sample I send you and I have the same problem.

I have only modify the Syncfusion.Blazor.PdfViewer version.

In the last post you suggest to modify the code-snippet for loading the PDF document with in the location.  But in my case I'm must load the pdf with byte array.

Thanks for your help
Nicolas



DM Dhivyabharathi Mohan Syncfusion Team April 16, 2021 07:22 AM UTC

Hi Nicolas, 
 
Thanks for your update. 
 
We suggest to upgrade the Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows to the latest version to resolve the issue. 
 
 
 
 
Regards, 
Dhivya. 


Loader.
Up arrow icon