redirect when downloading pdf in FPDF output

1

My question is and I hope you can answer it

I am using the fpdf library in which I have to click on the send button, redirect the PDF and download it, the problem is that when using the

$pdf->Output('D','entradamateriaPrima.pdf');

I can no longer use in windows location or the header Could someone explain me some way to force a download and redirect in the FPDF library.

    
asked by Rodrigo Loy 29.09.2016 в 17:13
source

1 answer

1

To download and view the file you must use the following:

$pdf->Output('FI','entradamateriaPrima.pdf');
    
answered by 12.10.2016 в 05:51