1

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?

Enrique Moreno Tent
  • 24,127
  • 34
  • 104
  • 189

1 Answers1

3

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'));
BenMorel
  • 34,448
  • 50
  • 182
  • 322
max.haredoom
  • 848
  • 8
  • 7