title: html: print() embed file
body: <p>I am showing a pdf inside a html using:</p>
  
  <pre><code>&lt;embed id="print" src="file.pdf" type="application/pdf" width="100%" height="100%"&gt; 
  </code></pre>
  
  <p>I would like to create a button that prints that file.</p>
  
  <p>I thought it would be something like this; but it isn't working.</p>
  
  <pre><code>&lt;button onClick="javascript:document.getElementById('print').print();"&gt;
  </code></pre>
  
  <p>Anybody an idea how I can call the print function on an embedded file?</p>