• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

PDF Embedding in Web without all the extra button

Hi

We are embedding a pdf  in a html it looks fine. But we dont want all the buttons displayed on there (except print and save).

Also, is there any way we can print from outside the pdf , the pdf .

Any help is greatly appreciated.

thanks
Prakash
0
eplanetsystems
Asked:
eplanetsystems
1 Solution
 
gamebitsCommented:
You should do the opposite, as stated here

http://www.useit.com/alertbox/open_new_windows.html

"Because users frequently close document windows, the best guidelines for linking to non-Web documents are:

1) Open non-Web documents in a new browser window.
2) Warn users in advance that a new window will appear.
3) Remove the browser chrome (such as the Back button) from the new window.
4) Best of all, prevent the browser from opening the document in the first place. Instead offer users the choice to save the file on their harddisk or to open it in its native application (Adobe Reader for PDF, PowerPoint for slides, etc.). Unfortunately, doing so requires a bit of technical trickery: you have to add an extra HTTP header to the transmission of the offending file. The header line to be added is "Content-disposition: Attachment". If possible, also add "; filename=somefile.pdf" at the end of this line, to give the browser an explicit filename if the user chooses to save the file. (I thank Sybren Stüvel for providing this code.)

All these guidelines stem from the same underlying phenomenon: the non-Web documents are native PC formats. These formats have their own applications, each of which gives users a set of commands and navigation options that are completely different than the ones for browsing websites. "

Gamebits
0
 
jessegivyDeveloperCommented:
Gamebits is rad!  Quite consise :)
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now