Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/06/2011, 05:31
diablo_jr
 
Fecha de Ingreso: noviembre-2007
Mensajes: 81
Antigüedad: 16 años, 4 meses
Puntos: 0
Problemas con el plugin de Adobe Reader

Buenas a todos, estoy montando una pagina html en la que muestro un pdf a través de la etiqueta <object>

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <link type="text/css" rel="stylesheet" href="style.css" />
  4.     <script type="application/javascript" src="configuracion.js"></script>
  5. </head>
  6. <body style="margin:0;padding:0">
  7.     <object width="100%" height="100%" type="application/pdf" data="prueba.pdf" id="pdf_content"></object>
  8. </body>
  9. </html>

Lo que pretendo es, con javascript, ocultar ciertos botones de la barra de herramientas que muestra el plugin de Adobe Reader.

Para ello, en la cabecera, incluyo la siguiente linea:

Código HTML:
Ver original
  1. <script type="application/javascript" src="configuracion.js"></script>

y en ese archivo la unica linea que hay es la siguiente:

Código Javascript:
Ver original
  1. app.hideToolbarButton("Print");

Con esto, debería ocultarse el botón de imprimir de la barra de herramientas, pero no lo hace... alguien ha tenido este mismo problema o me puede decir que hago mal ???

Un saludo y gracias.