Home » Knowledge Management, Open Source, Software Development, Wiki

Example Document Browser Code

Submitted by ericblue76 on February 12, 2010 – 11:51 am 264 views 2 Comments

Since I posted my article last month on How To Create Your Own Personal Document Viewer, I’ve had a few inquiries on how people could have a similar setup themselves.  I thought it might be helpful to .zip up the docbrowser project and show some of the code that does the conversions using the utilities I illustrated in the article.  Disclaimer: This code is by no means my finest work (it was hacked together on a Sat. afternoon), but it gets the job done.  At a high-level the code is very simple:

  • Determine the doc extension and perform the appropriate conversion (.doc.pdf.xls) or redirect using an external app (mindmapviewer or Google books)
  • Assign conversion commands to be executed for each doc type
  • Before doc display, lookup converted doc in cache to speed up render time (use MD5 hash on the title)

I’ve created a .zip file(4.1MB) of the entire Doc Browser sample code.  It contains the simple .CGI Conversion script, along with jQueryFileTree for rendering the doc tree, FlexPaper, and some sample documents.

Post to Twitter Post to Delicious

2 Comments »

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.