error loading xod file in IE9

60 views
Skip to first unread message

hammer ren

unread,
Sep 5, 2017, 12:00:50 PM9/5/17
to PDFTron WebViewer
For IE9  (pdfnetjs not supported) we request server to convert file to XOD for webviewer. But it errors even before firing loadDocument():


Justin Jung

unread,
Sep 5, 2017, 6:59:25 PM9/5/17
to PDFTron WebViewer
Hello,

Are you able to load WebViewer samples in IE9?
Can you send us the WebViewer construction code that you are using?

Justin Jung
Software Developer
PDFTron Systems Inc.

hammer ren

unread,
Sep 6, 2017, 12:25:49 AM9/6/17
to PDFTron WebViewer
I'm able to load samples in IE9.

Please see construction code below:

new PDFTron.WebViewer({
                path: path,
                type: 'html5',
                l: license,
                documentType: documentType,
                serverUrl: serverUrl,
                annotationUser: account,
                annotationAdmin: false,
                config: configFilePath,
                custom: JSON.stringify(customData),
            }, this.$el);

============= config.js ==================
$document.on('viewerLoaded', function() {
    readerControl.loadDocument(loadUrl, {
                    documentId: documentId,
                    filename: documentName,
                    streaming: true
                });
});

Justin Jung

unread,
Sep 7, 2017, 7:13:41 PM9/7/17
to PDFTron WebViewer
Hello,

We are having trouble reproducing the issue with the code.
Would you be able to send us a sample project?

hammer ren

unread,
Sep 11, 2017, 1:29:50 AM9/11/17
to PDFTron WebViewer
Please access the sample project via here.

hammer ren

unread,
Sep 11, 2017, 1:29:52 AM9/11/17
to PDFTron WebViewer
please use email: sup...@pdftron.com, and password setup last time (can be reset if could not remember).

Justin Jung

unread,
Sep 11, 2017, 7:09:51 PM9/11/17
to PDFTron WebViewer
Hello,

Thanks for sending us the link. When we tried to open "not working in ie9.pdf" in ie9, we noticed that it was passing documentType: pdf to WebViewer constructor. This means WebViewer tries to load xod as a pdf, which fails.

hammer ren

unread,
Sep 12, 2017, 1:16:14 PM9/12/17
to PDFTron WebViewer
Hi,

For pdf files we do not convert them to xod. So url return pdf file NOT xod to webviewer and that's why the documentType is pdf. Can you have a look at it again? Please use this link and the same username password as before.

Justin Jung

unread,
Sep 13, 2017, 7:00:28 PM9/13/17
to PDFTron WebViewer
The link doesn't seems to work - on IE it just hangs, and on Chrome it says it was redirected too many times :(

hammer ren

unread,
Sep 14, 2017, 12:08:10 PM9/14/17
to PDFTron WebViewer
Sorry about it. The access has been re-activated now. Looking forward to your opinion. Both two files are working perfectly fine in Chrome, Firefox, Safari, IE10 above and Edge.

Justin Jung

unread,
Sep 15, 2017, 7:23:15 PM9/15/17
to PDFTron WebViewer
Hello,

We were able to reproduce it, but it still seems like documentType is returning 'pdf' even when loaded in ie9.
To clarify, ie9 does not support direct pdf viewing. By design, you need convert it to xod.
In your first post, you've mentioned "For IE9  (pdfnetjs not supported) we request server to convert file to XOD for webviewer."
However, your sample doesn't appear to be converting to xod.

hammer ren

unread,
Sep 20, 2017, 6:25:35 PM9/20/17
to PDFTron WebViewer
Thanks pointing it out. I've implemented converting now even for pdf in IE9, but it is still not working. It just open grey background then nothing happen. Please check the png file over there as well, it works occasionally not all the time. And no error in console. I tested using IE9 in Windows 7.

Please access our sample project here using sup...@pdftron.com and the password you set before.

Matt Parizeau

unread,
Sep 20, 2017, 7:02:43 PM9/20/17
to PDFTron WebViewer
Thanks for updating the link. We've tried it again in IE9 and everything seems to be working well on your site. The document is loaded in IE9 and the png file also seemed to be opening consistently.

Do you still see it not working in IE9? You could try clearing the browser cache in IE as it may be caching the old pages.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

hammer ren

unread,
Sep 21, 2017, 4:12:26 PM9/21/17
to PDFTron WebViewer
Hi,

I still have problem of viewing both documents even I cleared the cache. The png file works 1 in 3 times but I didn't have any luck for the pdf.

I tested them using the IE9 on Windows 7 VM from Microsoft. What did you test from?

Matt Parizeau

unread,
Sep 21, 2017, 5:51:44 PM9/21/17
to PDFTron WebViewer
It looks like I'm using the exact same IE9 on Windows 7 VM as you. The first document loads successfully and the PNG documents load consistently, many times in a row without failing. Would you be able to send a video of yourself performing the test on your VM so that we can confirm we're taking the same steps as you?


















Matt Parizeau
Software Developer
PDFTron Systems Inc.

hammer ren

unread,
Sep 22, 2017, 1:30:37 PM9/22/17
to PDFTron WebViewer
I noticed error output in console when failed to view document. Please see attached screenshot. I'll post the video in following reply because of the size of the video.

Matt Parizeau

unread,
Sep 25, 2017, 1:49:26 PM9/25/17
to PDFTron WebViewer
Hmm, unfortunately I'm not able to reproduce that error. Would you be able to log the network requests from the developer tools and send a screenshot of it. Could you also send a screenshot of the specific request for the XOD file from the network tab.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Ryan - PDFNet Developer

unread,
Oct 24, 2017, 2:31:23 PM10/24/17
to PDFTron WebViewer
Hi we just wanted to check in and see if this IE9 issue is still unresolved for you or not?

hammer ren

unread,
Oct 30, 2017, 1:00:32 PM10/30/17
to PDFTron WebViewer
Not, still no luck in IE9.

Justin Jung

unread,
Nov 1, 2017, 2:22:19 PM11/1/17
to PDFTron WebViewer
We weren't able to reproduce the error last time. To help us to go to the next step of investigation, could you send us some of the network tab informations, specifically the request for the XOD file? Also, how much RAM are you allocating to your VM?
Reply all
Reply to author
Forward
0 new messages