The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
This might sound like a silly question - but how can I get the file/path of the document presently open in the PDF Viewer ?
If I load a document as a stream, and display it in the PDF Viewer and then allow a user to save it to the disk drive ... how can I know what filename/path the user has used ?
I could not find any reference in the object browser or other forms of help.
Many thanks in advance.
DWE
Edit: I see the question has been asked here and this feature was scheduled for inclusion in May 2018 ... did that occur?
KKKarthik Krishnaraj Syncfusion Team December 18, 2018 08:07 AM
Hi Darrin,
Greetings from Syncfusion,
We have the API to access the filename and filepath of the loaded PDF document in PDF Viewer control. You can find the below API to access the filename/path of the loaded PDF document.
However, if you load the document as stream we cannot get the filename/file path. This is the behavior of our PDF Viewer control. Also, we would like to know the use case of your requirement to load document as stream and to retrieve the file path. It will be helpful for us to analyze further and provide better solution.