Just for the record: It was a server side problem. The server required connection: keep alive in the http headers to fully download the pdf file. Thanks for the help though. All the best, Malte