Set the OS pdf file name

When you print to pdf, the file name use the window name as the default file name.

When you print silently, you do not have access to the pdf file save dialog…

Is it possible to set the pdf file name (silently too) ?

NO, I DO NOT USE PDFDocument.


This is the save pdf dialog I am talking about (from macOS, I suppose this is the same on Windows…)

Back when I used to rely on this ‘print to PDF’ option,
my workaround was simply change the window title to the document title before going to print, and change it back afterwards if need be.

Hi Jeff,

Thank you for this tip.

After I send the question, I drink a cup of coffee and think about that and that works fine (I append the Family Name and First Name).
Now, I have to think where to save by default the file or let the user decide later, (maybe the user do not need that file at all, only one print).

Other idea(s) are welcome.

if the user chooses the ‘print to PDF’ option, they get to choose where the file is saved. That is how it should be. Dont worry about it

I save the Printer settings and load them @ the next window Open time.

But maybe I must do not do that ?