I've been using Scribd to embed PDF files but am not happy with that solution. I don't necessarily want to share these files with "the world". And if I make them private then (authorized) website visitors are unable to do things like print.

I'm trying to stay away from iFrames. And I'd prefer to not have the display of these files dependent upon the visitor's PDF reader.

So I'm essentially looking for a way to:

1) Embed PDF files;
2) Not use iFrames;
3) Not rely on the users PDF reader;
4) Keep the files private;
5) Allow the visitor to save the file and/or print it.

Anybody have any suggestions?

Comments

Lloyd’s picture

Bump for the morning crowd. Desperately seeking help.

mcfilms’s picture

I recently saw another thread along this line. The only other solution was to convert the PDF to an image and display it that way. I think they mentioned imagecache could do such a conversion.

Browsers are not designed to display PDF files. You need a helper application and the end-user gets to control how that works.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

aldebaran’s picture

Our site uses D6 with the tac_lite module

Create a taxonomy called Privacy with Public / Private terms
Select content type Page for the Privacy vocabulary
Under User Management->Access by Taxonomy grant permissions by role for Authenticated Users to Privacy -> Private terms
Create a Page with Full HTML input format
In the body put something like this

<embed src="/sites/all/files/documents/my-doc.pdf" width="775" height="580">

That should give you all the joy of an embedded pdf with save/print for authenticated users !

dgoldenbaum’s picture

This should do the trick: http://drupal.org/project/embeditin

mcfilms’s picture

Very cool. Do you plan on releasing a Drupal 7 version of that module?

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com