Using the API, how to export a response survey as PDF?

Using the API, how to export a response survey as PDF?

Hi everyone, as most of you have experienced, there is a way in the web app to export the responses of a specific participant as a PDF. I have been trying to replicate that step using the API. However, I cannot find a way on how to do it. It looks that currently there is no way do that process using the API, but I was wondering if there is a "hacky-way" that someone has found, or if there is another idea on how to export a specific response of a survey as a PDF? If anyone can shed some light on this question, I will appreciate it.
Thanks.