Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

359
Visualizações
how to remove the pdf download icon that was opened through iframe

I want to remove that download icon that is in the PDF viewer, but I can't. I'm opening the pdf through an iframe. Here is an example of my code below:

<html>
  <head>
    <title>Disable Context Menu</title>
  </head>
  <body oncontextmenu="return false">
      <iframe id="pdfFrame" width="500px" height="600px" src="png.pdf"></iframe>
  </body>
</html>

First I tried to apply a style inside the page opened by the iframe, but I couldn't succeed in that.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Change:

<iframe id="pdfFrame" width="500px" height="600px" src="png.pdf"></iframe>

In:

<iframe id="pdfFrame" width="500px" height="600px" src="png.pdf#toolbar=0"></iframe>

Hope that helped!

about 4 years ago · Juan Pablo Isaza Relatório

0

You cannot simply change the view of a PDF when you placed it in the Distributed Network System (WorldWideWeb) it became just the same as EVERY item in the Public Domain an embedded object for download and view.

You can make suggestions as to how those dis-positions may be handled (see how I suggested via a fragment the second frame could be #toolbar=0) but once you publish html objects they are no longer yours to control.

Most browsers will come with their own editors to remove that just as easy as you can add it.

enter image description here

There are ways google can make it more difficult to extract the source PDF copy but if the client can view it a copy has already been gifted (dis-possessed) to them.

<html>
  <head>
    <title>Disable Context Menu</title>
  </head>
  <body oncontextmenu="return false">
      <iframe id="pdfFrame" width="500px" height="600px" src="https://docs.google.com/viewerng/viewer?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true"></iframe>
  </body>
</html>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda