title: fancybox show pdf
body: <p>hi i am trying to display a PDF with fancybox but I can not.</p>
  
  <p>I have this code:</p>
  
  <pre><code> $(".fancybox").fancybox({
        'frameWidth': 100,
         'frameHeight':495,
         'overlayShow':true,
         'hideOnContentClick':false,
        'type':'iframe'
  })
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;a class="fancybox" href="/symfony2/web/app.php/pdf/2"&gt; show pdf&lt;/a&gt;
  </code></pre>
  
  <p>but shows me that way generated pdf:</p>
  
  <p><a href="http://www.subirimagenes.com/imagen-pantallazo-8110661.html">http://www.subirimagenes.com/imagen-pantallazo-8110661.html</a></p>
  
  <p>Does anyone know how to solve the problem to display the facybox correctly? a greeting.</p>