Bound Document Printer with and Mimeo Connect

As the API Evangelist one of my jobs is to find other platforms, services and technology that goes well with the Mimeo Connect Cloud Print API.

One such platform that I've identified as a partner platform is provides a complete cloud storage platform, with a powerful developer platform and application directory called OpenBox. provides commercial printing of many types of bound documents including spiral bound, magazine style, and perfect bound, and with Mimeo Connect Cloud Print API you can integrate printing of these using

*** Heads up!! This requires basic understanding of and programming with PHP ***

To do this I sign up for a developers account and add new OpenBox application:
  • Give Application Name and Description
  • kinlane-productions2
  • Assign a description page for the application that tells about the printer.
An important part of this application is a callback URL for when users first add the application. This has to be a page you host that handles the oAuth, which gives this bound document printer access to a users account.

Another important part of each application are whats called service actions. Service actions which will show up for any user who adds this application to their account from OpenBox.

For my Open Box Application I create a new service action:
  • Give Application Service Action a title like, Bound Document Printer @ Mimeo
  • Choose which document extensions my printer supports, PDF for now
  • Enter a callback function which will send user when printing document
  • Enter callback parameters such as URL, Title, Extension of file to be printed.
Save your service action, fill out any other relevant parts of your application and hit save as well.

This creates your application at

Now you need put together the code that integrates with your account using the Mimeo Connect Cloud Print API.

First you need the OAuth piece of code described above, you can download this at Github. It requires the following files:
  • box_config.php
  • boxlibphp5.php
  • class.curl.php
  • index.php
This will allow your bound document printer to OAuth with

Now you need the actual code that lets you pull the file being passed by and print uses

Here is a sample code file for doing this:

The above code sample demonstrates how to build a bound document printer using cloud storage and Mimeo Connect Cloud Print API.

With this bound document printer you can public books, magazines, newsletters, reports and many other types of bound documents.

You can build any custom bound document with your account, with specific binding, paper, folds, covers, and much more. Then merge this document with any multi-page document from

Any company can build a Cloud Printer and publish to the OpenBox directory, to allow commercial printing using You can dowload a complete library of PHP code samples for integrating with at Github.