Forum Discussion

jonokivex's avatar
jonokivex
Helpful | Level 5
2 years ago

Dropbox raw PDF link overriding toolbar=0 & navpanes=0. Is it possible to remove the sidebar?

Hello,
I've embedded a raw PDF from dropbox using this code:
<embed src="dropboxpdflinkhere?raw=1" type="application/pdf" width="100%" height="100%" />

All fine and good.

But usually I can add toolbar=0 and navpanes=0 on the end to control how the pdf is shown. These commands no longer work using a dropbox hosted PDF. Is there any way around this?

Thanks!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Dropbox doesn't offer official support or documentation for options for embedding files directly like that, and so any undocumented functionality like that is subject to change or break without notice.

     

    If you want to embed a file from Dropbox on a third party site, you should use the functionality documented for the Dropbox Embedder here.

    • Здравко's avatar
      Здравко
      Legendary | Level 20

      Greg-DB wrote:

      ...

      If you want to embed a file from Dropbox on a third party site, you should use the functionality documented for the Dropbox Embedder here.


      Hmm...🤔 There are no any type of such features; the same like embedding raw link! The issue comes from dropping the anchor, coming from redirection. As mentioned in other feature requests, there should be a way to keep some anchor (probably passed as parameter) that brings up at the last redirection. 😉 Such feature could be used in embedder too. In general should be some way for using anchor (not only for PDF formatting/navigation like in OP; it's just a good example).

    • jonokivex's avatar
      jonokivex
      Helpful | Level 5

      Thank you. Only problem is you can't enable or disable print functionality with the dropbox embed, but I'm aware its been raised as a potential future addition.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks for following up. That's correct, the Embedder doesn't offer options for that, but this has been sent along as a feature request.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 17 hours ago
351 Following

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 or Facebook.

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!