• 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

    [Solved]Save As Pdf do not save links

    Opera for Windows
    pdf save as pdf links solved
    7
    23
    8709
    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.
    • operapdf
      operapdf last edited by leocg

      Save as pdf do not save links. In generaly save as pdf save same links but not all.
      For example print to pdf save almost all links. You can check it on opera forum page (https://forums.opera.com/category/11/opera-for-windows). Save this page as pdf and via printing to pdf and compare result (see name of topiks).

      It is Save as pdf:
      463cc17e-3df9-4cef-ad02-f712987270cc-image.png

      It is print to pdf:
      7247de45-822d-4ff4-9ef7-8d4267f06404-image.png

      Do you know how i can save as pdf with links?
      If it is bug how i can help with it (write about it to support etc)?

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

        I can confirm that with the PDF produced by the "right-click on page -> Save as pdf" feature, not all links are clickable.

        I don't know if it's due to an actual bug or if the code that generates the PDF is just limited in how it detects HTML links.

        On https://forums.opera.com/category/11/opera-for-windows, if you right-click on a link to a thread and inspect it, you can see that it is indeed an HTML anchor element and not some other element that's just made clickable by Javascript. Given that, I'm assuming the the "Save as PDF" code just isn't picking up those anchor elements because they're added to the page dynamically with Javascript or something in a way that causes them not to be detected.

        Given that, I would assume Opera could be improved to catch more links.

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

          It could be as simple as this:

          test.html:

          <script>
              window.addEventListener("DOMContentLoaded", function() {
                  var a = document.createElement("a");
                  a.href = "https://example.com/";
                  a.textContent = "Am I clickable in a PDF?";
                  document.body.appendChild(a);
              });
          </script>
          

          Load test.html in Opera, right-click the page and choose "save as pdf". Then, open the PDF and see if it's clickable. If it's not, it means Opera doesn't detect dynamically-added links. If so, it's something Opera should fix if possible.

          Reply Quote 0
            A Former User 1 Reply Last reply
          • operapdf
            operapdf last edited by operapdf

            You are right.
            Opera do not find dynamic links in save as pdf (but do it in print to pdf).
            Probably opera take semantic information from initialization page step for save as pdf. However opera take actual view of page for save as pdf (for example you can open some sub item on the page which do not showing on the page by default, and opera do save page in actual state).

            It is a pity that we have such asymmetry. I think it is not a true bug. Just developers have had some trouble with it. And they implemented this asymmetric approach.

            Do you know where do i can see programme code of this functional or it is not a public code?

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

              @operapdf said in Save As Pdf do not save links:

              Do you know where do i can see programme code of this functional or it is not a public code?

              Opera's source code is not public. But, Since it uses Chromium, you can look at Chromium source code.

              I think Chromium and Opera's PDF functions are done with https://opensource.google/projects/pdfium. Also, see https://cs.chromium.org/chromium/src/pdf/pdfium/pdfium_print.cc?g=0. I'm assuming Opera wrote some custom code for the "Save as PDF" function that makes use of PDFium. But, theat custom code probably isn't available to the public. But, don't really know for sure.

              On a side, there might be a "Save as PDF" extension that does things better than Opera's feature. You can look at https://chrome.google.com/webstore/search/save as pdf?_category=extensions and https://addons.opera.com/en/search/?query=pdf.

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

                I wrote in support but support do not understood me(

                Reply Quote 1
                  1 Reply Last reply
                • A Former User
                  A Former User last edited by leocg

                  PDFs created via Page > Save as PDF do not seem to save any URLs anymore since version 65.0.3467.38

                  Opera 65.0.3467.42 Stable x64, Win10 Prof.

                  Reply Quote 1
                    1 Reply Last reply
                  • A Former User
                    A Former User last edited by

                    Addendum: The same goes for Opera Developer 66.0.3502.0 x64.

                    Didn't test Opera beta.

                    Reply Quote 1
                      1 Reply Last reply
                    • A Former User
                      A Former User @burnout426 last edited by A Former User

                      @burnout426
                      I tested this example. test.html
                      If a PDF file is created in Opera 63 and later, in the created PDF, the link is not clickable.
                      If a PDF file is created in Opera 62 and below, the link is clickable.

                      In the PDF file created in Opera 65 and 66, it seems that any links are not clickable.

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

                        @johnd78 Thanks. If you get a chance, and can narrow it down to the first build with the problem, that'd help.

                        In the 63 changelog, the only PDF change I see is "DNA-78740 Save as pdf does not work on sidebar’s pane". The change is listed for 2 different builds.

                        Reply Quote 0
                          A Former User 1 Reply Last reply
                        • A Former User
                          A Former User @burnout426 last edited by

                          @burnout426 said in Save As Pdf do not save links:

                          If you get a chance, and can narrow it down to the first build with the problem, that'd help.

                          The first build in which all links are not clickable when saved to PDF - Opera Developer 65.0.3454.0

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

                            @johnd78 Thanks.

                            I don't see much in the changelog that would cause it beside a Chromium update. The Chromium update has quite a few PDF changes though.

                            https://chromium.googlesource.com/chromium/src/+log/78.0.3895.5..78.0.3904.9?pretty=fuller&n=10000

                            https://blogs.opera.com/desktop/changelog-for-65/#b3454.0

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

                              Filed bug DNA-82503.

                              Reply Quote 1
                                A Former User 1 Reply Last reply
                              • A Former User
                                A Former User @burnout426 last edited by

                                @burnout426 Fixed in Opera 69.0.3623.0 developer.

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

                                  @johnd78 Confirmed fix in that build with this test at least.

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

                                    The bug was more to do with links that didn't have class attributes or something than just dynamic links. Anyway, all seems to be good now in Opera Developer.

                                    Reply Quote 0
                                      1 Reply Last reply
                                    • A Former User
                                      A Former User last edited by

                                      I now have Opera 67.0.3575.79. And “Save As PDF” doesn't even save simple links from wikipedia.

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

                                        @operfree The fix isn't included in Opera 67. It's in Opera 68 (Opera Beta) and Opera 69 (Opera Developer). However, it looks like there's more work to do as the table of contents links on https://en.wikipedia.org/wiki/Opera_(web_browser) don't get saved as links.

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

                                          @burnout426 said in [Solved]Save As Pdf do not save links:

                                          However, it looks like there's more work to do as the table of contents links on https://en.wikipedia.org/wiki/Opera_(web_browser) don't get saved as links.

                                          I guess those never worked, so never mind on that part.

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

                                            When using this option, original url is not stored within the generated PDF. Is that also a bug or something that never worked?

                                            It would be great if the url is stored in the Title or Subject field of PDF's metadata.

                                            Reply Quote 0
                                              leocg 1 Reply Last reply
                                            • 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-