Print.js: Unable to set a file name

Created on 11 Jul 2017  路  8Comments  路  Source: crabbly/Print.js

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?

enhancement help wanted

Most helpful comment

image

image

still not working for me to download a pdf from a base64 String and set the title. wheres my Error?

All 8 comments

@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.

image

image

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maisumakun picture maisumakun  路  5Comments

PedroS5499 picture PedroS5499  路  8Comments

PabloSzx picture PabloSzx  路  5Comments

Aloogy picture Aloogy  路  7Comments

deysudip picture deysudip  路  4Comments