Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-7941

Provide users ability to link to a specific page in PDF attachments

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • None
    • None
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem Definition

      Suggested Solution

      • Permit a way for a user to select a specific page in PDF and link to it, such as with the Insert Link option in the editor.
      • Here, you can select an attachment for linking. Something could be added when you select a PDF document where you can also specify a page from here.

      Why this is important

      It's a built-in feature that Adobe has so we can take advantange of this and program it into Confluence for better ease of use.

            [CONFSERVER-7941] Provide users ability to link to a specific page in PDF attachments

            @Gebben Matthias I agree

            Jodie Randles added a comment - @Gebben Matthias I agree

            I cannot understand why this is rated as Resolution: Won't Do. It would be so helpful

            Gebben Matthias added a comment - I cannot understand why this is rated as Resolution: Won't Do. It would be so helpful

            For us it could be a nice feature to have.

            We also have big pdf documents and need links to specific pages instead of having to open the pdf file and then scroll down to the correspondent page.

            It'll make like much, much easier,

            Daniel Eugenio added a comment - For us it could be a nice feature to have. We also have big pdf documents and need links to specific pages instead of having to open the pdf file and then scroll down to the correspondent page. It'll make like much, much easier,

            Please consider.

            MS SharePoint supports this feature, why not Confluence?

            Deleted Account (Inactive) added a comment - Please consider. MS SharePoint supports this feature, why not Confluence?

            Nice feature to have.
            Please consider
            It would be nice to have it for an attached PDF, and for a pdf flie inside the PDF macro

            Moustafa Nabil added a comment - Nice feature to have. Please consider It would be nice to have it for an attached PDF, and for a pdf flie inside the PDF macro

            I have found a workaround that currently works for Confluence Cloud although I can't guarantee it as the devs could break this at any time.

            First, go to the file information for the PDF you want to link to. All mine are Attachments in pages so I go to the page and select "Attachments" from the ellipsis (...) menu in the top right.

            Select Properties on the PDF file you want to link. There should be a "New Content Type" field which says "application/pdf". Change this to "application/x-pdf" and save the changes.

            Back on the Attachments page, clicking the link will now open the PDF in your browser's PDF viewer instead of prompting to download it. Changing the Content Type like this changes how Confluence serves the PDF file.

            Now right click the link to the PDF file and copy it to your clipboard. It should be of the form https://mysite.atlassian.net/wiki/download/attachments/123456789/MyPdfDocument.pdf?api=v2

            Go to the page where you want the link, and edit it. Insert a "Web Link", add a title, and paste the copied link as the destination. On the end of the destination, add "#page=" and the target page number to the end, so the link now looks like https://mysite.atlassian.net/wiki/download/attachments/123456789/MyPdfDocument.pdf?api=v2#page=6

            Now, when you click the link, the PDF file will open in your browser's PDF viewer, and your browser should go to the correct page in the document. Not all browsers have PDF viewers, and not all of them support the #page= feature, so Your Mileage May Vary.

            Note that you can still use the "View" button in the Attachments view to use the Confluence PDF viewer, and you can right-click the Download link and use "Save File As..." to download it, so no functionality is lost.

            Hope this helps

            Trevor Pike added a comment - I have found a workaround that currently works for Confluence Cloud although I can't guarantee it as the devs could break this at any time. First, go to the file information for the PDF you want to link to. All mine are Attachments in pages so I go to the page and select "Attachments" from the ellipsis (...) menu in the top right. Select Properties on the PDF file you want to link. There should be a "New Content Type" field which says "application/pdf". Change this to "application/x-pdf" and save the changes. Back on the Attachments page, clicking the link will now open the PDF in your browser's PDF viewer instead of prompting to download it. Changing the Content Type like this changes how Confluence serves the PDF file. Now right click the link to the PDF file and copy it to your clipboard. It should be of the form https://mysite.atlassian.net/wiki/download/attachments/123456789/MyPdfDocument.pdf?api=v2 Go to the page where you want the link, and edit it. Insert a "Web Link", add a title, and paste the copied link as the destination. On the end of the destination, add "#page=" and the target page number to the end, so the link now looks like https://mysite.atlassian.net/wiki/download/attachments/123456789/MyPdfDocument.pdf?api=v2#page=6 Now, when you click the link, the PDF file will open in your browser's PDF viewer, and your browser should go to the correct page in the document. Not all browsers have PDF viewers, and not all of them support the #page= feature, so Your Mileage May Vary. Note that you can still use the "View" button in the Attachments view to use the Confluence PDF viewer, and you can right-click the Download link and use "Save File As..." to download it, so no functionality is lost. Hope this helps

            This would be such a useful feature. Currently I have one foot still in SharePoint because of the lack of this one feature.

            We have PDF documents from our suppliers that are hundreds of pages long (longest is 847 pages) that I put into the portal, and then create contextual links to the relevant sections on other pages for my team to find them quickly. In SharePoint, I did this by adding a "#page=" value to the end of the URL so that browser would automatically jump to the correct page on loading the document (Chrome supports this, haven't tested others).

            Unfortunately, the Confluence in-build PDF viewer doesn't support linking to a page/comment, and a direct link to the PDF on Confluence is served with a "Content-Disposition" header which causes the browser to prompt to download the document instead of viewing it. Without this header, I could use direct links with "#page=" as a workaround (accepting that this may not meet the use cases of others).

            Please reconsider this feature, or provide a way to exclude the "Content-Dispostion" header.

            Trevor Pike added a comment - This would be such a useful feature. Currently I have one foot still in SharePoint because of the lack of this one feature. We have PDF documents from our suppliers that are hundreds of pages long (longest is 847 pages) that I put into the portal, and then create contextual links to the relevant sections on other pages for my team to find them quickly. In SharePoint, I did this by adding a "#page=" value to the end of the URL so that browser would automatically jump to the correct page on loading the document (Chrome supports this, haven't tested others). Unfortunately, the Confluence in-build PDF viewer doesn't support linking to a page/comment, and a direct link to the PDF on Confluence is served with a "Content-Disposition" header which causes the browser to prompt to download the document instead of viewing it. Without this header, I could use direct links with "#page=" as a workaround (accepting that this may not meet the use cases of others). Please reconsider this feature, or provide a way to exclude the "Content-Dispostion" header.

            amarchan added a comment -

            Nice feature to have.  Please reconsider

            amarchan added a comment - Nice feature to have.  Please reconsider

            Mike Moss added a comment -

            Please reconsider, Atlassian. This is critical document management functionality–the ability to link to a destination (#[destination name]) within a PDF stored in Confluence–and not having it wrecks my ability to manage documentation there.

            Mike Moss added a comment - Please reconsider, Atlassian. This is critical document management functionality–the ability to link to a destination (# [destination name] ) within a PDF stored in Confluence–and not having it wrecks my ability to manage documentation there.

            Yes agree - this sounds like a good feature... reduces friction for those that may be reluctant to use Confluence for storing PDFs (or other popular format) documents.

            Oculus Hut added a comment - Yes agree - this sounds like a good feature... reduces friction for those that may be reluctant to use Confluence for storing PDFs (or other popular format) documents.

              smansour Sherif Mansour
              f27713bd947c Christian Lüthi
              Votes:
              1 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: