Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

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

New post

Comments

2 comments

  • 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.

    0
    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.

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.