Im in a TYPO3 system and I have an extension where I built a PDF file using fpdf.
When I submit the form with the data, the file is downloaded (around 3MB file) but when the download reaches 100%, it gives me a "Unknown Network Error". (Thats the message in Chrome)
This is my extension: http://pastebin.com/8GQCcKWj
What am I missing?
Simple solution: Don't do a
return $pdf->Output('medienpass.pdf', 'D');
in your getPdf() function because the output will be wrapped up in a lot of html code.
Instead return only your pdf to the client:
die($pdf->Output('medienpass.pdf', 'D'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.