I’m currently developing a corporate intranet that serves large PDF files. Users get frustrated when they have to wait for entire PDF files to download before they can view them. I have used the embedded Google documents viewer ( http://googlesystem.blogspot.com/2009/09/embeddable-google-document-viewer.html ) on other public facing websites for lazy loading and ease of document navigation, but this is not feasible as the solution is required for an intranet. Is it possible to achieve lazy loading of a PDF nativity within a browser and if so what are the requirements for this to happen? I am using ASP .NET MVC 3.
Thanks
You should make sure that the PDF documents that your serve are ‘linearized’ (optimized for web). It allows the browser to download the PDF document partially to display typically the first page fast. When the user navigates to another page, again just a part of the PDF document is downloaded. Here is a good article on the topic:
http://www.jpedal.org/PDFblog/2010/02/linearized-pdf-files/
In this scenario you would not write directly to the Response stream.