How do I update the default file name?

Published on February 23, 2026 Lightning PDF Generator


How do I change the file name of the generated PDF?

In Lightning App Builder, select the Lightning PDF Generator component on your page and enter your desired text in the File Name field in the component's properties panel. For example, entering Case Summary produces a downloaded file named Case Summary.pdf — you don't need to type the .pdf extension yourself.


The File Name field is a fixed, static value — it does not currently support merge fields or dynamic values (e.g., automatically inserting a record's Case Number or Name). Every PDF generated by that button will use the same file name.


See also: the Lightning PDF Generator setup guide for full configuration details.


Knowledge Article Number: KA-00210

View more articles in the knowledge base