22 Jun
2021
22 Jun
'21
8 p.m.
Pascal Pascali schrieb am 22.06.2021 um 13:55:
Dear ConTeXt community,
Is it possible to set the file name of the output from within the document? I can do it on the command line by adding --result="CustomName.pdf", but I'd need to do it according to certain variables in the content of the file itself...
You can set a different name at the first line of your document, e.g. % result="newfilename" but this is only a alternative to the result-argument on the command line.
Setupinteraction[title="CustomName.pdf"] will just set the internal pdf name, not the file system name.
With \setupinteraction you can set/change metadata values but not the file name. Wolfgang