Welcome to the new Box Support website. Check out all the details here on what’s changed.

Does Box pdf file support to open in browser instead of force download?

New post



  • Murtza

     Yes, you can use the embed_url method from the Boxr gem to generate a file preview link. This method takes a Box file id as the parameter and returns back a file preview link. You can preview the file by accessing the link directly or embedding the link into an iFrame.

    Comment actions Permalink
  • sushilprj

    Thanks Murtza for your response, I have to implement the same behavior as pdf file hosted in s3, It opens default in browse using pdf.js viewer. Is there a way to acomplish the same behavior? I have gone through this post https://www.dropbox.com/en/help/201. Please help me if this will work with boxr gem.



    Comment actions Permalink

Please sign in to leave a comment.