Displaying PDF |
Use the following:
$this->response->setHeader('Cache-Control', 'private'); $this->response->setHeader('Content-type', 'application/pdf'); readfile($file);
Simpler is always better
|
Messages In This Thread |
Displaying PDF - by donpwinston - 06-15-2018, 10:14 AM
RE: Displaying PDF - by donpwinston - 06-20-2018, 01:23 PM
RE: Displaying PDF - by InsiteFX - 06-21-2018, 03:02 AM
RE: Displaying PDF - by donpwinston - 04-25-2019, 09:00 AM
|