pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
967 stars 418 forks source link

Retreaving file name from the viewer. #89

Closed muhammedk closed 7 years ago

muhammedk commented 7 years ago

Hi

I am facing a challenge to retrieve the file name which is loaded in the viewer. I have an application which user is manipulating the PDF and each time I am saving it with different name to keep the history.

Is there any way to get back the file name which is loaded in viewer

pvginkel commented 7 years ago

No, there's not. The PdfViewer/PdfRenderer only keeps the stream, which doesn't have the filename. You have to keep track of this yourself.