Namespace: PartRetrievers

PartRetrievers

Contains the document part retrievers used to fetch xod document data.

Examples

// 5.1 and after
WebViewer(...)
  .then(function(instance) {
    var PartRetrievers = instance.PartRetrievers;
    // PartRetrievers.SomeClass
  });
// 4.0 ~ 5.0
var viewerElement = document.getElementById('viewer');
var viewer = new PDFTron.WebViewer(...);

viewerElement.addEventListener('ready', function() {
  var viewerIframe = document.querySelector('iframe');
  var PartRetrievers = viewerIframe.contentWindow.CoreControls.PartRetrievers;
  // PartRetrievers.SomeClass
});

Classes

AndroidContentPartRetriever
ArrayBufferPdfPartRetriever
AzurePartRetriever
ExternalPdfPartRetriever
HttpPartRetriever
IOSPartRetriever
LocalPartRetriever
LocalPdfPartRetriever
MagicPartRetriever
PartRetriever
RangeStreamingPartRetriever
StreamingPartRetriever
WinRTPartRetriever

Members


<static> CacheHinting

The type of hint to provide to browsers for caching the document. The part retriever may use query parameters to influence browser caching behavior.

Example
NEVER_CACHE: A unique ID is appended to the document URL.
CACHE: The range of bytes requested is appended to the document URL.
This should be used in most cases.
NO_HINT: Nothing is appended to the document URL.
Useful if you require that the document URL never changes.