sajozsattila/mur2_editor

PDF it came without file extension.

sajozsattila opened this issue · 5 comments

Comment on reddit.com:

image

At the moment I can not recreate the issue.

Windows 10 Pro 10.183683 + Firefox 88.0.1 (64-bit):

image

The download dialog:
image

The downloaded file:
image

It is looking like working for me.

I made the comment. So I reproduced the issue.

Windows 10 Home + Firefox 88.0.1 (64-bit):
imagen

Downloades file (the file downloads automatically without download dialog):
imagen

The PDF file can still be opened without file extension and:
imagen

It reads correctly:
imagen

Ok, probably I have managed to reproduce the issue. This is regarding certain Firefox settings:

Képernyőfotó 2021-05-28 - 20 16 45

So, in Firefox it is possible to set the download PDF without dialogue. Like on the above screenshot. To get the dialogue set this back to the default value:

Képernyőfotó 2021-05-28 - 20 22 07

Could you please confirm your settings?

The issue is the same as in this problem.

As all modern browser supporting PDF, the expected behaviour of the PDF generation to open in a new tap, with windows.open() JavaScript function. However, this is basically open up a blob, which filenames can not set. When somebody set the browser to automatic download for pdf files, like above, basically we save the blob without filename.

One solution could be to change the default behaviour and instead of open the PDF in a new tab, download straight. But I believe for most user the tab is more convenient, as they straight can see the result, without searching and opening in a different application. So I rather do not change this behaviour.

I changed the browser settings (I don't remeber when and how I changed said option in first place). Now exporting the PDF file works as intended. Thanks for the time!