Using version 1.7.0 of the WebViewer and trying to connect to a Amazon streaming cloudfront url, now my problem is multiple user(above 300) can view the same file at the same time. The error returned is the following:
Error retrieving file: <filename>. Received return status 0.
Note: Below 100 users access the same file at the same time. its working as expected, but more number of users are going to access the same file at same time return error.
The following sample code,
myWebViewer = new PDFTron.WebViewer({
type: type,
path: 'lib', //URL path to the WebViewer root folder
documentType: docType,
enableAnnotations: true,
mobileRedirect: false,
streaming: false //set streaming to 'true' if your .xod server doesn't acknowledge byte-ranges
}, viewerElement);
In Readercontrol.js
if (streaming === true) {
partRetriever = new CoreControls.PartRetrievers.StreamingPartRetriever(doc, cacheHinting.NO_HINT, decrypt, decryptOptions);
} else {
partRetriever = new CoreControls.PartRetrievers.HttpPartRetriever(doc, cacheHinting.NO_HINT, decrypt, decryptOptions);
}
This is become very critical for us.Does anyone have any idea how to fix this issue?.
waiting for your reply.