PDFViewerServer - DownloadFileName does not work with Base64 DocumentPath

Hello,

I'm using PdfViewerServer, version 19.2.0.51.

I'm creating a pdf in memory using Syncfusion.Pdf.PdfDocument and then converting the stream to a Base64 string which is then bound to DocumentPath. It works well, but DownloadFileName is ignored when downloading the pdf through the viewer.  DownloadFileName is bound to a string property that is set dynamically according to the job name. I've also tried setting DownloadFileName to a static string and get the same result in both cases. When I push the viewer's download button the filename is always "undefined.pdf".

I've tried changing the DocumentPath to point to a test pdf file and sure enough, the DownloadFileName works as expected.

Thanks.

Alan


2 Replies

DM Dhivyabharathi Mohan Syncfusion Team August 18, 2021 02:49 PM UTC

Hi Alan, 
 
 
Thank you for contacting Syncfusion support. 
 
 
We have confirmed the reported issue “DownloadFileName property is not working while loading the document using the documentPath property” is a defect and the fix for the changes will be included in our upcoming weekly NuGet release on August 25, 2021. You can track the status using the below feedback link, 
 
 
 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team August 25, 2021 02:44 PM UTC

Hi Alan, 
  
 
We have resolved the reported issue in our latest weekly NuGet release version v19.2.0.57. Kindly upgrade to that version to resolve the issued.    
     
Packages:    
    
Blazor Client     
Blazor Sever    
Service side package       
ASP.NET Core :       
        
ASP.NET MVC:       
     
   
 
 
 
Regards, 
Dhivya. 


Loader.
Up arrow icon