Flash viewer error

59 views
Skip to first unread message

kouko...@gmail.com

unread,
Apr 30, 2014, 11:20:12 AM4/30/14
to pdfne...@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

I also attach a screenshout of Chrome's debugger that might help:
http://i57.tinypic.com/x2rthx.png

Thanks in advance! :)

Ryan

unread,
Apr 30, 2014, 12:53:14 PM4/30/14
to pdfne...@googlegroups.com
Do you get the same error when you upload the file to our demo page? http://www.pdftron.com/webviewer/showcase/
Is the issue with one particular file, or many?
Feel free to contact support at pdftron.com, especially if you can send the input file that causes the problem.

Also, note that there is a separate WebViewer forum, that you might want to check.
https://groups.google.com/forum/#!forum/pdfnet-webviewer

kouko...@gmail.com

unread,
May 2, 2014, 7:05:03 AM5/2/14
to pdfne...@googlegroups.com
Hm...
It seems that when using the non-minified version and I include these additional scripts :

<script src="~/Scripts/PdfTron/flash/swfobject.js"></script>
<script src="~/Scripts/PdfTron/flash/FABridge.js"></script>
<script src="~/Scripts/PdfTron/flash/HttpAjaxPartRetriever.js"></script>

...I get the same error as I used to get with the minified version of "".
So, the one mystery is solved...

kouko...@gmail.com

unread,
May 2, 2014, 7:09:26 AM5/2/14
to pdfne...@googlegroups.com
Also, thanks for the link to the other group.
I guess this is the wrong group to post, but too late to change this now. :(


On Wednesday, April 30, 2014 7:53:14 PM UTC+3, Ryan wrote:

kouko...@gmail.com

unread,
May 5, 2014, 8:48:24 AM5/5/14
to pdfne...@googlegroups.com
It seems that when I set the "streaming: true" on the viewer it work OK (although everything seems blur).
But if I set it to false, then I get the error (Central Directory offset not found). :(
Any idea what may be wrong?
I have the impression that this error is related to the ZIP format of the XOD.



On Wednesday, April 30, 2014 7:53:14 PM UTC+3, Ryan wrote:

kouko...@gmail.com

unread,
May 5, 2014, 10:27:43 AM5/5/14
to pdfne...@googlegroups.com
It also seems that when using "streaming: true", what I see in the viewer is the thumbnails stored inside the XOD, not the actual pages (I guess that's why it is so blur...).



On Wednesday, April 30, 2014 7:53:14 PM UTC+3, Ryan wrote:

kouko...@gmail.com

unread,
May 6, 2014, 12:39:02 PM5/6/14
to pdfne...@googlegroups.com
Hello.

I have an update to this issue.
Please, keep this in mind to help other user in the future.

The issue was that the Flash viewer used byte-ranges.
This works fine in IIS for static files, but in my case I had to send the file bytes from a controller action.
I didn't support byte-ranges in my controller action, so this was ther problem.

After using this library:

Everything work as expected.

Ryan

unread,
May 7, 2014, 12:06:52 PM5/7/14
to pdfne...@googlegroups.com
Great thank you for the information! I'll post this to the webviewer forum to help others.
Reply all
Reply to author
Forward
0 new messages