문제

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'));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top