Open pdf in browser

  • Re: Can't open Pdf files in browser

    After many months I'm trying to solve this problem before giving up and change browser (Edge or Firefox don't have this problem)
    Is there any solution? Someone can help me?

  • Opera has a built-in PDF reader so these files should open in the browser. If it doesn't happen just on some pages then it's probably a page issue.

  • So no other options than using a browser that doesn't suffer this problem.
    After such many years using Opera this is a really sad way to end it 😞

  • @yellowratberni said in Open pdf in browser:

    Re: Can't open Pdf files in browser

    After many months I'm trying to solve this problem before giving up and change browser (Edge or Firefox don't have this problem)
    Is there any solution? Someone can help me?

    yea use the stand-alone free adobe acrobat reader app. i personally would never open a pdf in any browser cause typically the info in it is something i don't want to share so why would i open it in a browser.

  • 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?

  • 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

  • @yellowratberni Does it happen only on that page?

  • 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

  • @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.

  • 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

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

  • @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.

  • 0_1509981172009_Appunti01.jpg

  • 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.

  • 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.

  • 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!!

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

    0_1510068132811_Appunti03.jpg

  • 0_1510068144973_Appunti04.jpg 0_1510068151830_Appunti05.jpg

  • 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.

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.