0

I have tried this, still unable to get the preview of it in browser. But the file is downloaded automatically which is not desired.

$pdf->Output('I','EstimateReport.pdf');
WillardSolutions
  • 2,316
  • 4
  • 28
  • 38
  • 2
    Update your question and add your html related code .. of your php code complete with the html for the page – ScaisEdge Dec 20 '18 at 18:00
  • possible duplicate of https://stackoverflow.com/questions/34891513/view-pdf-file-in-browser-instead-of-downloading – rs007 Dec 20 '18 at 18:33
  • Remove the parameters from your call to the Output method. – Dave Dec 20 '18 at 18:37
  • Can you use the network inspector in your browser to see what headers are being sent? You may need to set the Content-Disposition manually: header("Content-disposition: inline; filename='EstimateReport.pdf'")); Maybe also try removing the filename parameter. Are you able to view a PDF from a different source in this same browser? – Matthew Peltzer Dec 20 '18 at 19:16

0 Answers0