Created: 2012-03-26 13:00
Updated: 2017-09-27 14:28



Boxmarklet, Easily upload PDF version of a webpage to Box. This code powers


Boxmarklet is a bookmarklet tood for uploading PDF version of a webpage to user's Box account. The backend runs on Sinatra.

The app uses wkhtmltopdf for taking screenshots of a webpage and box-ruby-sdk for interacting with Box API.

Usage guideline

Though, the app is targeted for heroku platform. In order to deploy it on your heroku dyno, follow the steps given below.

  1. Create an account on heroku
  2. Copy this code to a folder on your machine, and initialize a GIT repository.
  3. Create a developer account on box and create an application there. In the edit box application section, enter redirect URI in the following format:
  4. Copy the API-key and put it in file for production and development environment. (You can create a different application for your dev setup and put the key for it in the development environment section in file)
  5. Set APP_URL config variable in boxmarklet.js file to point to your application URL.
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more