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

Forum Discussion

lportzline's avatar
lportzline
Helpful | Level 5
4 years ago
Solved

Open PDF in browser

When I share a link to a PDF, how can I get the PDF to open directly in someone's browser without requiring them to download the file to their hard drive? Thanks.

  • Rich's avatar
    Rich
    4 years ago

    lportzline wrote:

    As you suggested, I've tried the dl=1 and raw=1 parameters with people both inside and outside of my organization, and they're still being taken to a page that wants to make them download the file rather than opening it directly.


    Using ?dl=1 will force the file to download so you don't want that one. The default, or ?dl=0, will preview the file on the Dropbox website. So it will stay in the browser, but it will have the Dropbox interface around the PDF. Using ?raw=1 just sends the raw file to the browser and the browser determines how to handle it.

     

     

    That link opens the PDF file directly in a browser if the browser knows how to handle a PDF file and it's set to open them directly, instead of handing them off to another application or just downloading it. Those settings are in the browser and not part of Dropbox.

8 Replies

Replies have been turned off for this discussion
  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II
    4 years ago

    lportzline wrote:

    When I share a link to a PDF, how can I get the PDF to open directly in someone's browser without requiring them to download the file to their hard drive?


    That's mostly dependent on how they have their browser configured. You can provide a link that either previews on the Dropbox website, forces a download or just sends the raw file to their browser. Assuming you also want to avoid sending them to the Dropbox website to view it, sending the raw file is likely want you'd want in this case, but it will still depend on how they have their browser configured to handle PDF files.

     

  • lportzline's avatar
    lportzline
    Helpful | Level 5
    4 years ago

    Thanks. As you suggested, I've tried the dl=1 and raw=1 parameters with people both inside and outside of my organization, and they're still being taken to a page that wants to make them download the file rather than opening it directly. Weird.

  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II
    4 years ago

    lportzline wrote:

    As you suggested, I've tried the dl=1 and raw=1 parameters with people both inside and outside of my organization, and they're still being taken to a page that wants to make them download the file rather than opening it directly.


    Using ?dl=1 will force the file to download so you don't want that one. The default, or ?dl=0, will preview the file on the Dropbox website. So it will stay in the browser, but it will have the Dropbox interface around the PDF. Using ?raw=1 just sends the raw file to the browser and the browser determines how to handle it.

     

     

    That link opens the PDF file directly in a browser if the browser knows how to handle a PDF file and it's set to open them directly, instead of handing them off to another application or just downloading it. Those settings are in the browser and not part of Dropbox.

  • Catrik's avatar
    Catrik
    Explorer | Level 4
    4 years ago

    >Using ?raw=1 just sends the raw file to the browser and the browser determines how to handle it.

     

    Is there an option to make all files in dropbox behave like this? We have a user hosting multiple pdf's, and they do not work correctly on the dropbox pdf viewer. There are too many files to edit the link by hand every time, and too many users to instruct everyone to download it first or mess with settings on their end.

  • Walter's avatar
    Walter
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Hey Catrik, thanks for joining the discussion here.

     

    I'm afraid there's no such option at this moment within Dropbox. 

     

    If you could elaborate on what's not working for you exactly, we might be able to help further though. 

     

    Keep us posted!

  • Catrik's avatar
    Catrik
    Explorer | Level 4
    4 years ago

    1) Sometimes links dont work

    For unknown reason, links in some pages stop working. They might work some times and sometimes not. On page 100 they might not work, but on page 101 they do work. The issue is not in the pdf file because they always work if you download it first.

     

    2) Sometimes copying text doesnt work

    When the link doesnt work, you try to copy and paste it to the URL bar. But sometimes that does not work either, Dropbox refuses to understand there is any text on the page. Like above, this happens randomly to random pages, but to multiple people on different PC's.

     

    3) Browser zoom doesnt work correctly

    Ctrl+scroll wheel only chances the zoom of the UI, not the pdf document itself. You have to use the zoom buttons on the Dropbox UI, which is just stupid and unneccessary inconvinience.

     

    4) Cant directly go to x page

    As far as I can tell, it's not possible to just enter a page number and directly go there. Pretty standard feature IMO, I dont understand why it doesnt exist here.

     

    The files have nothing unordinary in them, for example 136 pages, 2,6MB, content is the usual text, pictures and links.

     

    It would be much easier to just have an option to directly use already existing and working PDF viewers that have the features people are used to having, so I dont understand why Dropbox insists on forcing its own viewer for everyone. The only non-bandaid solution I have found is switching to another file hosting service.

  • Walter's avatar
    Walter
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Thanks for the additional details and I appreciate the feedback about previewing files that are shared through shared links via our website too Catrik - most appreciated!

     

    I'm not sure if this would help, but if you have the files stored in your Dropbox account, you should be able to open them via a 3rd party app/integration that might be better for your needs too. 

About View, download, and export

Node avatar for View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.

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!