23

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.

      • saul replied to this.

        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 replied to this.

          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.

              • Vlad replied to this.

                Fortrikka Measure performance on a large PDF before we do this?

                  3 months later
                  6 days later

                  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.

                  • Vlad replied to this.

                    lytoooo0 Sorry I did not understand that. What is the ask?

                      2 months later

                      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

                        4 months later

                        Adding shortcuts to move one page up or down in a pdf file opened in browser with left and right arrow keys would be quite convenient. I am a student that interacts with a lot of pdf files and id rather have them in browser and so a feature like this would be nice.

                        Sorry if this already exists in some other form, in case it does, is there a possibility of switching the command to the left and right arrow keys? Since that would feel very intuitive.

                        Thanks!

                          Merged 1 post from Add left and right page shortcut movements on PDF files.

                            In my experience PDFJs has excellent performance. I find it consistently less laggy and more responsive than Orion's builtin PDF viewer.

                            You can investigate performance with the example viewer here.

                            According to the FAQ, performance is more dependent on file complexity/size than the number of pages. Not exactly sure why this is 🤷

                            Not only is PDFJs more feature rich, I also find it more robust. It avoids some bizarre freezes I've had with Orion's builtin pdf viewer. Not sure if Safari has these issues with its pdf viewer. Its been so long since I used that.

                            The PDF viewer is one of the reasons I still keep Firefox as a secondary browser. When I'm working with a lot of pdfs, I'll start moving tabs from Orion to Firefox just to take advantage of Firefox's better viewer.

                            As a bonus, switching to PdfJS would also resolve the find text in PDF feature.

                            NOTE: I've tried using the PDFJS Chrome Extension for this, but unfortunately Kagi doesn't seem to support it (doesn't process the URL correctly).