Hi @Sara_Mostafa,
Thanks for reaching out! Is the workflow triggered from an action in your dashboard? If so, you could generate the pdf in your app and then access it within your workflow
It sounds like this tutorial could work for your use case
If not, let me know what the constraints are!