Visor PDF con JS (JQuery + Google Viewer API)

abril 28th, 2011 Posted by jquery 0 thoughts on “Visor PDF con JS (JQuery + Google Viewer API)”

0. Agregar Jquery y fancybox (JS + CSS) al head

1. En el JS


$(".test").fancybox({
'width' : '75%',
'height' : '90%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});

2. En el html


<a class="prueba" href="http://docs.google.com/gview?url=http://mysite.com/mipdf.pdf&embedded=true">Prueba</a>

Copyright © 2018 programadorfreelanceargentina.com

Programador Freelance Argentina