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
 
see vendor information in user profile
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:52 PM.

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

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