View PDF with Cake


#1

Hi everyone,

I am trying to simply view a pdf in the browser. I’m trying to find an example but I have not been able to find one so far. I would really appreciate if someone could point me to the documentation or provide a simple example of where to place a pdf file and how to render it in CakePHP in the browser (Or download).

I’m sure there is an obvious answer but could not find it anywhere. Thank you for your help!

Kind Regards.


#2

https://book.cakephp.org/3.0/en/controllers/request-response.html#sending-files


#3

Thanks Diego! Much appreciated.