Do not burn PDF (FPDF) on the server

0

In an intranet environment, I am generating a PDF with PHP, and visualize it with $ pdf-> Output ($ file, 'F'); it works perfect, but I do NOT want to record it on the server, only it opens in the browser. I have tried with all the options and the only one that opens the pdf in the browser is 'F'. I will appreciate if you can guide me. Thank you very much.

    
asked by Guille 23.11.2017 в 20:21
source

1 answer

0

You have to use the option S that returns the file to a php variable

$strPdf = $pdf->Output("",'S');

and to show it in the browser, see my answer in this thread

    
answered by 23.11.2017 в 21:31