Adobe SHARE for your iPhone

By Shahram Javey

Adobe SHAREAdobe today released a beautiful looking online service called Adobe SHARE (beta). Share can be viewed as your online document library in the clouds. You can easily upload a document and share it with others. A thumbnail and an Adobe Flash preview of most document types are automatically created and the Flash preview can be embedded in most blogs. At this point the share service requires a browser with latest version of the Adobe Flash plug-in.

Share PDFIn addition, today Adobe also released the web services for SHARE. The web services offer a simple REST based API to access Share libraries. You can use the web services to create mash-ups. In my quest to learn Ruby on Rails. I’ve written a simple application (based on the RailsSpaces book) that allows you to view your Share library using plain old HTML. I wanted to access my Share library on my iPhone (which has an excellent support for PDF and other file formats). The current mash-uphttp://web.sharepdf.com/ – is not speedy, nothing is currently cached and there are lots of other applications running on this server. You can see the source code here.

There are a couple of minor bugs in the current web services & this mash-up:

  • The XML requests cannot contain any new line characters. For now, just send your XML request as one long string with no line breaks.
  • Ruby returns the current time in seconds. Share API requires the time in mili-seconds, so consecutive calls may appear to be issued at the same time. Just add a sleep in between the calls, e.g., to insert “sleep 1″ when you iterate over the list of your documents.
  • There is a typo in the API documentation, the URL to get the source document must end in src and not in source. See the definition of the method src.
  • I tweaked the site.css file and now the application shows up as a tiny thumbnail on my iPhone. Just tap on the app and iPhone will automatically zoom it.

9 Responses to “Adobe SHARE for your iPhone”

  1. sj Says:

    If your web page is showing up as a small thumbnail on your iPhone, use the viewport meta-tag.

  2. KATO Hideyuki Says:

    Cool! I wanted an application like this. so I had made API wrapper before making rails app…
    http://adobeshare.rubyforge.org/

    In Japan, we can’t get iPhone, but iPod touch was released. I can browse Adobe Share document via your rails app.

    BTW:
    > Ruby returns the current time in seconds.
    How about “tv_usec” method?
    my implementation is
    > time = Time.new
    > calltime = time.to_i.to_s + sprintf(”%06d”, time.tv_usec)

  3. sj Says:

    Thank you for pointing out that I could use the tv_uses method. I’ll checkout your Ruby classes & perhaps start using them.

  4. KATO Hideyuki Says:

    Thank you. but I’m Ruby newbie. And my English is terrible…
    So, please give me some advice if you use them.

  5. Ali Says:

    Can I upload my PDF to iPhone with iBrickr software???

  6. sj Says:

    I think you can, but I’m not sure if then you could upload it via the Safari browser or attach it via Apple mail program.

  7. PO Says:

    Cool stuff, I just tried this on my iPhone.

    It seems very slow and I got a HTTP 500 error.

  8. sj Says:

    You may have a hit the server at a bad time. The Ruby on Rails app is running on a shared server and it may have been down at the time. Try it again, I just did and is working fine now. Thanks.

  9. iphone games music Says:

    Nice blog, i have added it to my favourites, greetings

Leave a Reply