Custom naming for documents in pdf

We have a option “pdf” when print any document. I want custom naming for each document. How do i achieve that.


PDF file is renamed with the document name, currently there is no option to have a custom name for pdf.


I saw a file /home/frappe/frappe-bench/apps/frappe/frappe/utils/ that creates pdf files. I dont yet know python very well ,can u please help how i can achieve file name of format
Or if you can please help me understand the script I will manage to make changes.

Custom naming of pdf docs and saving to custom folders is a very important feature and would be most welcome. Thank you.

Hi, is this customization is in latest erp version?