Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

vcha's avatar
vcha
Explorer | Level 3
4 years ago
Solved

Dropbox Rendering Specific Pages of PDF in HTML

I am trying to display a specific PDF page on my webpage. When I set src to (below), it displays the whole pdf. src="https://www.dropbox.com/example.pdf?raw=1  When I add #page=3 (example below...
  • Здравко's avatar
    4 years ago

    vcha wrote:

    ...

     When I add #page=3 (example below), it still display the whole pdf.

    ...


    Hi vcha,

    First of all, the whole pdf gonna show always! If you want only particular page to show up, you need to edit the pdf on fly and strip all other pages. Adding particular page as a anchor just navigates to that page, but doesn't restrict which part of the pdf to be shown.

    After that, take in mind that Dropbox shared link doesn't point to the referred file directly, but redirect to there. During this redirection any anchor in the former link gets stripped and that's why pdf files will always show from the first page. You have to scroll to desired page yourself after the document gets loaded.

    Hope this helps.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!