• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Open pdf in browser

    Opera for Windows
    4
    19
    16599
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • burnout426
      burnout426 Volunteer last edited by

      You're saying that when you click on a link to a pdf file, it doesn't load in a tab in Opera where it's loaded with Opera's built-in pdf viewer? Or, are you saying something different?

      Reply Quote 0
        1 Reply Last reply
      • yellowratberni
        yellowratberni last edited by

        When I try to open it inside the webmail page appears an inside tab who asks me to install a pdf viewer with a link to Adobe Reader.
        Always the same thing even if I select to open the pdf in an external viewer from the Opera options

        Reply Quote 0
          leocg burnout426 2 Replies Last reply
        • leocg
          leocg Moderator Volunteer @yellowratberni last edited by

          @yellowratberni Does it happen only on that page?

          Reply Quote 0
            1 Reply Last reply
          • yellowratberni
            yellowratberni last edited by

            Yes, I've tried with my yahoo webmail but I think they have a direct viewer so it works.
            If you got a link to test I can try

            Reply Quote 0
              1 Reply Last reply
            • burnout426
              burnout426 Volunteer @yellowratberni last edited by burnout426

              @yellowratberni said in Open pdf in browser:

              When I try to open it inside the webmail page appears an inside tab who asks me to install a pdf viewer with a link to Adobe Reader.

              Which webmail?

              I'm wondering if the page is trying to embed a pdf instead of just providing a link to it. In HTML terms, that means something like this:

              <embed type="application/pdf" src="link_to_pdf" >
              

              If that's the case (I guess you could right-click that area of the page and choose "inspect" to find out), it might be an issue with the built-in pdf viewer not handing embeds and only direct links. It's hard to say without seeing the page.

              If it's some ISP webmail or something, maybe you can create another email account that's just for testing so we can log into that one.

              Reply Quote 0
                1 Reply Last reply
              • yellowratberni
                yellowratberni last edited by

                Inspecting the page I got this:
                0_1509966176786_Appunti01.jpg

                Is a domain related email of www.aruba.it , an important italian provider.

                I've notice that if I right click on the pdf icon it opens options and if I click on "open" instead of "preview" it will open a new tab and the the viewer works ok.
                So the problem is the preview

                Reply Quote 0
                  burnout426 1 Reply Last reply
                • yellowratberni
                  yellowratberni last edited by

                  If I just left click on the pdf icon this is the result:
                  0_1509966409978_Appunti02.jpg

                  Reply Quote 0
                    1 Reply Last reply
                  • burnout426
                    burnout426 Volunteer @yellowratberni last edited by

                    @yellowratberni said in Open pdf in browser:

                    Is a domain related email of www.aruba.it , an important italian provider.
                    I've notice that if I right click on the pdf icon it opens options and if I click on "open" instead of "preview" it will open a new tab and the the viewer works ok.
                    So the problem is the preview

                    Okay. that helps a little. But, if you could click the > for the selected div to expand it and do so to all its descendants, that'd help.

                    Reply Quote 0
                      1 Reply Last reply
                    • yellowratberni
                      yellowratberni last edited by

                      0_1509981172009_Appunti01.jpg

                      Reply Quote 0
                        1 Reply Last reply
                      • burnout426
                        burnout426 Volunteer last edited by burnout426

                        Thanks. I see the markup is just showing the buttons to click on for each attachment. I guess I'd kind of need the markup for the preview area after you click to try and load an attachment and it fails.

                        That'd be to just see if it's trying to embed the pdf. I still wouldn't be able to troubleshoot the problem without a test account for your webmail or another dojo webmail.

                        Reply Quote 0
                          1 Reply Last reply
                        • burnout426
                          burnout426 Volunteer last edited by burnout426

                          Put a pdf on your desktop and name it test.pdf. Then, save the following (select, copy and paste into a text editor) as testpdf.html (to your desktop) and load it in Opera.

                          <!DOCTYPE html>
                          <html>
                              <head>
                                  <meta charset="utf-8">
                                  <title>Opera PDF embed Test</title>
                              </head>
                              <body>
                                  <p><embed type="application/pdf" src="test.pdf" width="400" height="400"></p>
                              </body>
                          </html>
                          

                          Does that at least work?

                          Also, with the webmail, after you try to load the preview for an attachment and it fails, look at the "Console" tab in the developer tools (ctrl + shift + i). Maybe it'll tell you about a Javascript error and or security error, which might tell you why the pdf isn't loading in the preview.

                          Reply Quote 0
                            1 Reply Last reply
                          • yellowratberni
                            yellowratberni last edited by

                            Yes...the html works.
                            Now I try to see if there is an error and if I can create a new mail so you can test it.
                            Thank you in advance!!

                            Reply Quote 0
                              1 Reply Last reply
                            • yellowratberni
                              yellowratberni last edited by yellowratberni

                              Unfortunately I can't create another email.!
                              Here's what display the console when I try to preview a pdf:

                              0_1510068132811_Appunti03.jpg

                              Reply Quote 0
                                1 Reply Last reply
                              • yellowratberni
                                yellowratberni last edited by

                                0_1510068144973_Appunti04.jpg 0_1510068151830_Appunti05.jpg

                                Reply Quote 0
                                  1 Reply Last reply
                                • burnout426
                                  burnout426 Volunteer last edited by burnout426

                                  Can you select the "Console" tab instead?

                                  Since Opera is based on Chromium, testing in Chrome to see if it does it too would help.

                                  Also, disable any extensions you have in Opera. Maybe one is interfering.

                                  Reply Quote 0
                                    1 Reply Last reply
                                  • Referenced by  lintao51 lintao51 
                                  • First post
                                    Last post

                                  Computer browsers

                                  • Opera for Windows
                                  • Opera for Mac
                                  • Opera for Linux
                                  • Opera beta version
                                  • Opera USB

                                  Mobile browsers

                                  • Opera for Android
                                  • Opera Mini
                                  • Opera Touch
                                  • Opera for basic phones

                                  • Add-ons
                                  • Opera account
                                  • Wallpapers
                                  • Opera Ads

                                  • Help & support
                                  • Opera blogs
                                  • Opera forums
                                  • Dev.Opera

                                  • Security
                                  • Privacy
                                  • Cookies Policy
                                  • EULA
                                  • Terms of Service

                                  • About Opera
                                  • Press info
                                  • Jobs
                                  • Investors
                                  • Become a partner
                                  • Contact us

                                  Follow Opera

                                  • Opera - Facebook
                                  • Opera - Twitter
                                  • Opera - YouTube
                                  • Opera - LinkedIn
                                  • Opera - Instagram

                                  © Opera Software 1995-