In Firefox if you are viewing a PDF then there is a sidebar with the table of contents:
It is very useful and would be nice to have in Orion as well.
Many of the other features of the PDF Viewer in Firefox would be great to have - page numbers (Both actual page numbers as well as pdf page numbers), as well as easy keyboard controls (left/right to go forward/back pages)
In order to do this, either Orion will have to completely make its own PDF viewer, or use firefox's, if it is open source.
eirk It is open source, as well as being available through a chrome extension (one that does not appear to work on Orion from what I could tell).
The Firefox PDF viewer can be found here: https://github.com/mozilla/pdf.js
saul Thanks, this looks useful.
How does one activate the sidebar in question in their demo?
Vlad The button in the top left. However, their demo does not have any chapters/sections, so the table of contents from the screenshot in the original post is not accessible, but you can still see the page previews in the sidebar.
Vlad I tried this link and got a firefox-like PDF view but I have tried some other files and get the PDFKit style viewer, and there is no TOC bar. Can check the screenshot below.
The link of the file of the second picture http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/physics/physics.pdf
saul and you reckon this is much better than WebKit's built in viewer? Any cons to replacing it? Anything even better open source out there?
Vlad Honestly, I haven't looked at much in terms of other open source options. I can definitely take a look and let you know. However, I do greatly prefer Firefox's PDF viewer over both the WebKit built in viewer and the Preview desktop application as well.
Vlad I believe it is better. It comes with more view options, and I wonder about the performance although.
Fortrikka Measure performance on a large PDF before we do this?
lytoooo0 its an old thread - what are your findings/ask?
Vlad There are two different PDF readers show up randomly. The first one looks like a chrome/firefox reader and the second one looks like the safari reader.
lytoooo0 Sorry I did not understand that. What is the ask?
Lol. the first one is supposed to look like the firefox one, as it’s a demo. everything else should look like the webkit one