Get loaded File Name without File Path

Hello everybody,

i try to get the File Name from the loaded Document.

i use

pdfViewer.DocumentInfo.FileName and get the full path with the filename.

when i use

pdfViewer.DocumentInfo.FilePath, i get a empty string.

Please fix the bug.

My current Workaround

new FileInfo(pdfViewer.DocumentInfo.FileName).Name

Best regards

2 Replies 1 reply marked as answer

DD Divya Dhayalan Syncfusion Team January 12, 2021 01:21 PM UTC

Hi David, 
 
Thanks for contacting Syncfusion support. 
 
We confirm that the issue “PdfViewer.DocumentInfo.FilePath having empty string for loaded document” is a defect. The patch for this fix is expected to be available on January 27th, 2021. 
 
Please find the feedback link as below, 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team January 27, 2021 08:53 AM UTC

Hi David, 
 
We appreciate your Patience. 
   
The issue PdfViewer.DocumentInfo.FilePath having empty string for loaded document has been fixed and patch for this fix can be downloaded from the following location.  
  
Recommended approach - exe will perform automatic configuration   
   
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment   
   
 
Assembly Version: 18.4.0.30 
   
Installation Directions:   
This patch should replace the files “Syncfusion.Pdf.Base.dll, Syncfusion.PdfViewer.WPF.dll” under the following folder.   
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.6   
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\9.3.0.61\precompiledassemblies\9.3.0.61\4.0   
   
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.   
   
Note:   
You can change how you receive bug fixes by navigating to the following link and updating your preferences.   
   
   
Disclaimer:   
Please note that we have created this patch for the version 18.4.0.30 specifically to resolve the following issue reported in this Forum. 161419 
   
If you have received other patches for the same version for other products, please apply all patches in the order received. 
   
This fix will be included in our 2021 Volume 1 release which will be available on March month – 2021 
   
Please find the feedback link below, 
 
Regards,   
Divya 


Marked as answer
Loader.
Up arrow icon