![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 11/7/2021 11:18 PM, Pablo Rodriguez via ntg-context wrote:
Hi Hans,
I would like to use luatex.wrapup to remove media files that I don’t need anymore once the PDF document is generated.
I have realized that luatex.wrapup works at the very end of the PDF generation, but in each run.
Is there no way to have a luatex.final_wrapup, when no other run will take place?
a run doesn't know it's the last one, only the context runner knows and then it doesn't call tex (which is why --purge and --result work) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------