Getting "Central Directory offset not found" error using Flash WebViewer and IIS Server

13 views
Skip to first unread message

Ryan - PDFNet Developer

unread,
May 7, 2014, 12:09:16 PM5/7/14
to pdfnet-w...@googlegroups.com
I have just strated testing your viewer and the flash version of it generates some javascript error to me, while the HTML5 version work great.

I get the following error:

Central Directory offset not found
WebViewer.min.js:25

Ryan - PDFNet Developer

unread,
May 7, 2014, 12:11:16 PM5/7/14
to pdfnet-w...@googlegroups.com
The issue is that the Flash viewer used byte-ranges when streaming is false. (same applies to the other webviewers)

This works fine in IIS for static files, but in this case the file bytes are sent from a controller action.
There is default support for byte-ranges in the controller action, so this was the problem.

After using this library:

Reply all
Reply to author
Forward
0 new messages