Welcome Guest, Not a member yet? Register   Sign In
Output pdf in other page
#1

(This post was last modified: 05-21-2024, 10:44 AM by pippuccio76.)

hi ,

hi have a pdf that work fine,it  open in browser  with tcpdf . there is a way to redirect to a page (base_url() f.e.) and show pdf in other page ? i try :

Code:
        //Close and output PDF document
        $pdf->Output('Doa Bloccato', 'I');

        $response = response();

        $response->setHeader('Content-Type', 'application/pdf');

        return redirect()->to(base_url());

but doesn't show pdf , if i comment return line pdf are show.
Reply
#2

No. Use target=”_blank” for link
Simple CI 4 project for beginners codeigniter-expenses
Reply
#3

(05-21-2024, 11:24 AM)ozornick Wrote: No. Use target=”_blank” for link

it's a controller method , i would be open 2 page at the same time , it is possible ?
Reply
#4

Two per request is not available. Maybe through JS?
Simple CI 4 project for beginners codeigniter-expenses
Reply




Theme © iAndrew 2016 - Forum software by © MyBB