Mozilla PDF.js Name of file in printing dialogs

Please someone can help me, how to set a name of file in printing dialog of browser?

I use Mozilla PDF.js version v3.5.141

PDF files is send to default viewer.html as base64.

I can change title in browser with function, after creating objects:

setTimeout(() => { // Wait for PDFViewerApplication object to exist PDFViewerApplication.setTitleUsingUrl(name_of_pdf_file); }, 1000);

Thats work fine.

But when user click on print button, and for example change print to PDF, then always default name is:

“PDF.js viewer.pdf”

Many thx for advice for all