Set name of PDF file #308
-
Hello! We are trying to serve a MuhammaraJS PDF file from express, but change the title (by default the browser will use the last part of the URL). I don’t see an option to set the title metadata, but maybe I am missing it. Any ideas? I edited the above to say |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The file name is set in the attachment config of express. This is not to be set on the pdf metadata level. If you are using |
Beta Was this translation helpful? Give feedback.
ahh ok not the file name on disk, but what the browser shows. gotcha.
MuhammaraJS/lib/recipe/info.js
Line 93 in fb3474c
have a look at receipt. It will help you either directly, you maybe already use recipe, or it may gives you some directions as it is implemented there.
Let me know if that helps you out.