Alcumus / react-doc-viewer

Apache License 2.0
208 stars 101 forks source link

Custom File Name Option #64

Closed aaquibnaved closed 3 years ago

aaquibnaved commented 3 years ago

@mattmogford

For a project I'm working on, it was quite useful to be able to override the filename of the file I'm displaying using React Doc Viewer (as most of the files I'd be getting from an S3 store and the names wouldn't be that user friendly).

I created this small PR to accept an additional fileName parameter to override the filename if you'd like.

Feel free to comment and/or suggest improvements to the PR. I've made it as minimal as possible.