How to Hide PDF tools in HTML..

Discussion in 'PHP' started by azharSEO, Nov 29, 2012.

  1. #1
    Hello Friends Please tell me How to hide PDF tools in HTML, i am waiting for your Reply..
    Thanks in advance
     
    azharSEO, Nov 29, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    What do you mean by PDF tools, and what do you mean by hide?

    You want to send the user a PDF file and not allow printing, saving, etc? That's done when you create the PDF file, you can't do it with code on the site. It's the document that can't be printed, saved, etc., it's not an "all documents on this site" kind of thing.
     
    Rukbat, Nov 30, 2012 IP
  3. juliobeaupre

    juliobeaupre Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If the PDF plug-in version supports passed in control options, you can hide all the toolbar buttons by appending #toolbar=0 to the src.
     
    juliobeaupre, Dec 1, 2012 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    If. If not you can't. And the site can't control the plugin the user is using, so it's very bad practice to write code assuming that the user has made the choice you hope he made - for anything, not just as far as choice of PDF plugin is concerned. (That's why all Javascript should have fallback code - you can't even assume that the user has Javascript enabled.)
     
    Rukbat, Dec 1, 2012 IP