Change filename in export pdf

Change filename in export pdf

It is possible to export to pdf by changing the file name both for users and for the customer portal without publishing the report. For users it can be done by setting a custom action but I don't know how to do it for the customer portal without publishing the report.