When you want to take an action after the document is generated, this action can be executed from an Autolaunched Flow.
Create an Actionable in PDF Butler of recordType “Run Lightning Flow”, pass on the API name of your Flow and the class: “cadmus_core.Actionable_RunAfterFlow”