Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Streaming large PDFs from SharePoint

I have a client that wants to store large PDFs (>700MB) on SharePoint 2013. The problem is that viewing the PDF is currently requiring the entire PDF to be download before displaying the first page. I need the browser to display each page of the PDF as it downloads, a feature I believe Adobe calls "Fast Web View" or "Byte Streaming". Here is what I know:

  • "Fast Web View" is enabled on the PDF document in the Document Properties window.
  • I can verify that the PDF is "Linearized" by reading the ASCII content.
  • I have checked the PDF reading options from the PDF Accessibility.
  • The client has SharePoint 2013 on premise installed.
  • SharePoint's File Handling is set to permissive.
  • I have verified PDF is an AllowedInlinedownedMinme type of the Web Application.

Anything else I should check or configure?

like image 766
terahex Avatar asked Oct 19 '22 14:10

terahex


1 Answers

It is not enough if the PDF files are linearized (technical term in PDF parlance) or optimized for fast web view (marketing term for that feature).

There need to be two conditions met before taking advantage of fast web view working for the end user:

  1. The PDF viewer needs to be able to make use of the linearized/optimized PDF file features.
  2. The PDF serving remote host (in this case SharePoint) needs to be properly configured to honor 'byte range requests' by the viewer, so downloading chunks of the PDF file may be delivered "out of order".

However,...

  • ...I do not know if SharePoint servers in general do support the second requirement;

  • ...if SharePoint is not the problem, you may want to check which PDF viewer is actually in use in that environment (test it with Adobe Reader -- that one takes advantage of linearized PDF features for sure).

See also this answer to a question from today, which gives a few more technical details:

  • How are PDF files able to be partially displayed while downloading?
like image 69
Kurt Pfeifle Avatar answered Oct 22 '22 04:10

Kurt Pfeifle