Make an anchor tag the triggers print action on click
<p>I have seen questions similar to this but different enough that I felt I needed to post a new one. </p>

<p>It seems that there is a lot of information on creating a link that will print the browser page, but I need to create an anchor tag that will print a specific file linked in that anchor tag and I'm not sure how to go about this.</p>

<p>A literal example of what's needed: </p>

<pre><code>&lt;a href="somepdf.pdf"&gt;Print the PDF&lt;/a&gt;
</code></pre>

<p>The idea is that the user then clicks this link and the print action is automatically implemented. </p>

<p>Any thoughts on how this might be done?</p>

<p>Apologies in advance if this has been answered and I just couldn't find it.</p>