Would it be possible to add the ability to set the file name for printing. Currently it is about/blank. This way people can save the file as a PDF on the print screen with the right file name.
Perhaps this could be an additional option?
@Orcinuss Maybe we could set the iframe document title by receiving it as an additional option.
You can now pass the parameter documentTitle which will set as the iframe title and used when saving a PDF file of the print element.


still not working for me to download a pdf from a base64 String and set the title. wheres my Error?
I agree with @MaikkiaM . I'm specifying the PDF with base64 and the documentTitle option gets ignored. The name of the PDF appears to be the name of the data url created with createObjectURL. Is there some way to fix this?
I would also agree - not working for me either
Anybody has a workaround for this issue?
Anybody has a workaround for this issue?
documentTitle isn't working for me either.
Most helpful comment
still not working for me to download a pdf from a base64 String and set the title. wheres my Error?