Support of links - Bug?

69 views
Skip to first unread message

jke.s...@googlemail.com

unread,
Oct 15, 2014, 6:49:41 AM10/15/14
to pdfnet-w...@googlegroups.com
Hi,
 
we have a problem with external links in XOD converted pdf's.
 
On start-up with a document  URL set to 'documentUrl:' in settings.js everything works fine. With the same document loaded in the config.js with: readerControl.loadDocument( URL ); the external links seems to be broken. (On click nothing happends)
 
2 Questions:
a) Known? with a possible workaround or more steps needed to load a document with full working external links?
b) How to disable external links in General
 
Thanks for any help,
Jens

Matt Parizeau

unread,
Oct 15, 2014, 3:41:04 PM10/15/14
to pdfnet-w...@googlegroups.com
Hi Jens,

Thanks for the report. We've been able to reproduce and fix the issue and you can find a build with the issue fixed here: http://pdftron.com/ID-zJWLuhTffd3c/WebViewer/WebViewer_1.8.0.27315.zip

When you say disable external links in general, do you mean just removing the links completely from the document (and keeping internal links)? If that's what you want then you could have something like this in a config file:
$(document).on('viewerLoaded', function() {
    readerControl
.docViewer.on('linkReady', function(e, linkEle, linkObj) {
       
if (linkObj instanceof window.CoreControls.Hyperlink) {
            $
(linkEle).remove();
       
}
   
});
});

Matt Parizeau
Software Developer
PDFTron Systems Inc.

jke.s...@googlemail.com

unread,
Nov 11, 2014, 5:56:03 AM11/11/14
to pdfnet-w...@googlegroups.com
Hello Matt,
 
thanks for your help. The code- Fragment for disable the external links works fine. But the bugfix release 1.8.0.27315 works only on PC Web and not in a mobile environment. (Tested with Safari and Android (up to newest Versions) The links (internal / external) only work after initial load via 'documentUrl:". After changing the document with readerControl.loadDocument the links are dead / non functional.
 
Kind regards,
Jens

Matt Parizeau

unread,
Nov 12, 2014, 5:37:12 PM11/12/14
to pdfnet-w...@googlegroups.com
Hi Jens,

Can you try out this build for a fix to the issue in the mobile viewer: http://pdftron.com/ID-zJWLuhTffd3c/WebViewer/WebViewer_1.8.0.27997.zip
Note that there are changes to CoreControls.js and MobileReaderControl.js.

Matt Parizeau
Software Developer
PDFTron Systems Inc.
Reply all
Reply to author
Forward
0 new messages