I am getting data from an API for a PDF that I would like to open in a new window. I am getting an undefined error for the data passed. It is REST response the data is BYT