Open a PDF received via a GET request PHP

3 days ago 9
ARTICLE AD BOX

I receive a PDF file as a result of a GET request via the API. But I beginner in programming and I don’t understand how to display a PDF on the screen so that I can print it later.

If I try to echo $res (result of my GET request), I see a lot of strange symbols (check image).

... $res = curl_exec($curl); curl_close($curl); echo $res;

enter image description here

How do I convert this to PDF and open it for printing?

Read Entire Article