title: Show PDF in a Vaadin View
body: <p>I want to show a PDF in a Vaadin view. I create a BrowserFrame and I pass the StreamResource of the PDF:</p>
  
  <pre><code>StreamResource streamResource = new StreamResource(
                  getPresenter().createPdfStreamSource(), report.getName() + ".pdf");
  
  
  BrowserFrame pdf = new BrowserFrame(null, streamResource);
  pdf.setSizeFull();
  
  content.addComponent(pdf);
  </code></pre>
  
  <p>This code creates an iframe with the following source:</p>
  
  <pre><code>http://localhost:8080/my-app/vaadinServlet/APP/connector/0/134/source/mypdf.pdf
  </code></pre>
  
  <p>If I point the browser to this URL, it shows the PDF properly. However in my application the PDF view doesn't show. What am I doing wrong? </p>
  
  <p>I am testing this in Google Chrome.</p>
  
  <p><strong>Edit</strong>: I downloaded the plugin PDF Viewer based on PDF.js and my app works fine. Does the Chrome PDF reader plugin need special configuration?</p>