Open FPDF in new tab
问题 I have a pdf generated (fpdf) from a post form. I would like the pdf to open in a new tab and/or window prompting the user to save the pdf. I'm guessing I need to save the output to a string $data=$pdf->Output("OfficeForm.pdf", "S"); but what exactly can I do with this string to get it to open in a new window. I've attempted something like this but it's not working. Am I on the right track or is window.open not what I need? echo "<script type=\"text/javascript\"> window.open('$data', '_blank'