fix ownCloud specific loading of the pdf document