title: print a pdf via iframe (cross domain)
body: <p>I need to print a PDF... But I get an error</p>
  <p>Is there a workaround? I just need to print a PDF file with one click</p>
  <h1>error:</h1>
  <pre><code>Uncaught SecurityError: Blocked a frame with origin &quot;https://secure.domain.com&quot; from accessing a frame with origin &quot;https://cdn.domain.com&quot;. Protocols, domains, and ports must match.
  </code></pre>
  <h1>code:</h1>
  <pre><code>var iframe = $('&lt;iframe src=&quot;'+url+'&quot; style=&quot;display:none&quot;&gt;&lt;/iframe&gt;').appendTo($('#main')).load(function(){
      iframe.get(0).contentWindow.print();
  });
  </code></pre>