Hi, make sure $currentUser has the correct user roles to be able to access the page DS_ShowPageLaunchBuilderPDF and the DocumentGeneration entity to be able to download the file.
Set the DocumentGeneration log node to trace to show a more detailed log and see what's wrong.
Goodluck!