Well, the obvious solution is loading fewer data. If the file is too big you can cut it in smaller peace and load part by part when scrolling or just show a message that the file is too big to preview. Browsers and iframes aren't made to load mega PDFs. You have other tools for that ;)