i couldnt find anything about the response in the documentation, But in general, a good idea is that you get a url as a response and then you can use the preview pdf to display it.
this has to do with the api that you use, some give url as a response, but i couldn’t find what type of response does the api that you use has.
you can search in the documentation