-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF.js media viewers does not respect links #8
Comments
Could you please try and check out and build the pdfjs branch? |
I've changed to branch pdf.js, downloaded it, opened in eclipse and build ANT target "dist-jar". I have replaced the media viewers jar with the resulting one. But it seems there is some bug in the Javascript code as the previewer says that it can not download PDF content and the Javascript Console shows some errors in the minimized JS: Uncaught TypeError: Property 'progressCallback' of object # is not a function pdf-min.js:1 |
Did you build using ant -f project.xml dist-jar ? |
a ok, didn't know that. I've tried again after building as you mentioned. Building this way the ant output shows still a task called yuicompress running but now the viewer loads and the document is shown. Nevertheless "TypeError: this.progressCallback is not a function" in line 226 of pdf-min.js is still shown in the javascript console. And the links don't work either, so it seems like pdfjs branch does not solve the problem. I've tested it with several browsers and all of them behave in the same way:
I'm running in Alfresco Community 4.0.d. |
The javascript error, might be related to this ? mozilla/pdf.js#3368 |
Thanks for spotting that pdf.js issue. I was able to replicate it, and will add this fix as soon as it is merged in the pdf.js project. As for hyperlinking support, this must be implemented separately, a quick check in pdf.js project and their viewer implementation viewer.js tells that it does need to be implemented in the viewer (it is not part of core library). I'll keep this issue open as an enhancement request. |
Great, thanks. |
Also handles the error discovered in pdf.js while investigating #8
When the PDF.js media viewer shows a document, if the document has links those do not work. In flash preview you could click on the embedded links without any problems.
I have checked a sample document with mozilla's PDF.js demo and they work so I think it must be an issues with the Share Extras integration.
The text was updated successfully, but these errors were encountered: