Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 14, 2013, 11:55 AM   #1
JTSmeed
macrumors member
 
Join Date: Jun 2009
preview documents in DMS

I am tasked with creating a document management system that our customers and vendors use to view details pertaining to each transaction. Each transaction contains several files (usually pdf and images, but sometimes word, excel, powerpoint) that I need for them to be able to preview in the web browser. The rest of the system is basically complete.

Since the transactions are confidential, there is a login system and uploaded files are stored outside of the webroot (stored and accessed via php).

The Question: When a user views a transaction and clicks on a related document, I need for them to be able to preview it in the browser. Since the documents are outside of the web server root, this will likely need to be done with PHP and be as secure as the session based login system. Any ideas on how to work the preview? Even if only for pdf's? Image files are not my concern right now as I already have a lightbox script that should adapt nicely to files served up with PHP.

Preferably, users on iPhone/iPad as well as Mac/PC should be able to view these files.

I'm familiar enough with php, javascript/jquery, and html to comfortably use these. All suggestions are welcome though.
__________________
 MacBook Pro 15" Early 2011 2.3 Quad Core i7 8GB RAM 512GB SSD High Res Screen
 MacBook Air 13" RevA; 24" iMac, 2.4 Ghz, 4GB, 1TB
 64 At&t Black iPad 2; 64 GB iPhone 4S
JTSmeed is offline   0 Reply With Quote
Old Mar 15, 2013, 02:14 AM   #2
SrWebDeveloper
macrumors 68000
 
SrWebDeveloper's Avatar
 
Join Date: Dec 2007
Location: Alexandria, VA, USA
 
Quote:
Originally Posted by JTSmeed View Post
Any ideas on how to work the preview? Even if only for pdf's? ...Preferably, users on iPhone/iPad as well as Mac/PC should be able to view these files.
Here's one way, complete solution (high level view):

1) Drupal 7 CMS with responsive theme for mobile support
2) Files uploaded vis Amazon S3 CDN ( offsite files, secure, Drupal 7 supports S3 as an external private file system seamlessly and transparently intergrate via one simple contrib module: http://drupal.org/project/amazons3 ) - users login to Drupal, you create content type(s) to upload files in whatever folders you wish, each stored on the CDN and retrieved as if it was local. This approach is a professional scalable implementation instead of dealing with local above docroot file transfers, permissions issues, etc. Simplify and externalize, plus enjoy the S3 management console.
3) Use one of the PDF viewer contrib modules listed here: http://drupal.org/node/1781960 (I suggest the PDF Reader, last one listed)

There are numerous contrib modules for S3 support in Drupal such as Views S3 so you can create ad hoc queries and lists accessing your S3 content with ease. Useful for created a fully themed/customized paginated file manager integrated with the preview stuff noted in #3 above. Views is a powerful tool when used properly, and is well supported.

-jim
__________________
Jim Goldbloom
Sr. Web Developer, owner GoldTechPro, LLC
http://www.GoldTechPro.com
SrWebDeveloper is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Tags
dms, pdf, php, preview, secure

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Preview/QuickLook iWork documents without iWork vladobizik Mac Applications and Mac App Store 3 Nov 6, 2012 08:33 AM
DMS NewDocs SViK Pro Mac Applications and Mac App Store 2 Aug 30, 2012 03:26 PM
Where to access Preview documents? staccato83 OS X 10.8 Mountain Lion 5 Jul 26, 2012 12:31 PM
Documents in the cloud & Preview.app aka.seim OS X 10.8 Mountain Lion 2 Jun 25, 2012 06:36 AM
Preview and Text Edit documents in iCloud Steven Jackson OS X 10.8 Mountain Lion 2 Jun 14, 2012 03:30 PM

Forum Jump

All times are GMT -5. The time now is 11:26 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC