Welcome Guest, Not a member yet? Register   Sign In
Showing pdf on browser
#4

(04-16-2024, 02:07 AM)kenjis Wrote: This worked.

return $this->response->download(WRITEPATH . 'patterna.pdf', null)
    ->setContentType('application/pdf')
    ->inline()
    ;

Thank you kenjis. It works great.
Of course I should disable "Internet Download Manager program" so the pdf be shown on the browser. In v3.4.8 and older the pdf file was shown without disabling that program when I set the headers.
Reply


Messages In This Thread
Showing pdf on browser - by aarefi - 04-15-2024, 02:53 PM
RE: Showing pdf on browser - by InsiteFX - 04-15-2024, 11:05 PM
RE: Showing pdf on browser - by kenjis - 04-16-2024, 02:07 AM
RE: Showing pdf on browser - by aarefi - 04-16-2024, 04:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB