I need to have a database where I store pdf documents that can be retrieved online by myself and authorized users. Any Thoughts on that?

Thanks

Comments

Enjoy_Life122’s picture

On our site what we did is modify the book feature node to feature PDF documents only with a page that listed the content in plain text. The structure goes [Book-Division], [Chapter-Branch], [Section-Document Class], [Sub-Section-Document]. When the page loads it provides the text of the document in plain text and a link to the PDF document on the website server. It's pretty basic but we've found it works well. You can also restrict access to the content to administrators or certain user classes using this method. Hope that helps!

zen-cowboy’s picture

can you give me a link to your website if possible? i'd like to see how it looks/works, if not restricted.

i'll follow up on your suggestions;

thanks

andrewgearhart’s picture

Curious if there has been any movement on this? I'd love to be able to use Drupal to index the PDFs from a daily publication that I work on.

28-60 pages each day.... to organize them into a single "chapter" contained in a volume (book?).

Andrew 'Mickey Knox' Gearhart
Web Developer kinda guy

agentrickard’s picture

Other than copy/paste.

Looking for a cool solution here, as our documentation team likes Drupal, but needs their PDFs to be loaded into the site and be indexed and searchable.

Anyone worked on this?
--
http://ken.blufftontoday.com/
Search first, ask questions later.

bjaspan’s picture

I want to do exactly the same thing, though with XML docs instead of PDF. I'd like my docs to exist as a regular Drupal node or flexinode type but, when clicked on, return only the raw document bytes and correct Content-Type instead of a normal themed page.

My solution for now is that I created a flexinode type (e.g. "XML doc") with a single text field. To create a new document node, I upload the document to server and create a XML doc node in which I manually store the document's file name in the text field.

I then created node-flexinode-n.tpl.php to theme nodes of type XML doc and use PHP to embed a document plugin (in my case Flash, in yours Acrobat Reader) with a reference to the actual document URL.

Finally, I use the module node_privacy_byrole to limit access to the XML doc object to subscribers only.

This isn't as good a solution as described in my first paragraph. A subscriber who reads the HTML can deduce the URL of the underlying file and download it directly, tell others how to get it, etc (or if some docs are public, anyone can figure out the trick). Of course, the subscriber could also just share his/her password.

Hope this helps,

Barry