stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
474 stars 181 forks source link

filenameForDownload is not working instead the filename is being taken from the document title. #2393

Closed NaivedyaMishra1 closed 3 months ago

NaivedyaMishra1 commented 3 months ago

Hi Stephan, I am using ngx-extended-pdf-viewer version 19.5.1". I am trying to set the filename of the downloaded document through the filenameForDownload attribute but the filename is being taken from the document title . Could you please help me on this, thanks. Also thanks for replying to my other issues.

stephanrauh commented 3 months ago

This sounds like a bug.

As for version 19.5.1: with very few exceptions, I don't support older versions, so I'm afraid you'll have to update to version 21.0.0 to benefit from my bugfix.

stephanrauh commented 3 months ago

Well, I tried to reproduce your issue and failed. Everything works as intended. Maybe there's a typo?

I've added the attribute to the default demo of the showcase, so you can see it in action: https://pdfviewer.net/extended-pdf-viewer/simple