PDF download is missing most of the document