Can I download a generated (from task) PDF document?

Hi to all,

On the completion of my user task form, a PDF document is automatically generated and is saved in a selected directory of my computer.
This PDF document is generated from JSON variable data which are given to a Java library like openhtmltopdf.

Does anyone know please how can the generated (from the task completion) pdf document be downloaded (instead of be saved somewhere in my computer) ?

Thanks a lot in advance,
Steve