Restrict Print to Iframe with barcode image

Restrict Print to Iframe with barcode image

Hello,

I'm working on an application that has a barcode component. 

I have an HTML view to generate the barcode image from a third party app, and I can print it, but when I embed the HTML view in a page with a form the Print Button Prints the whole page rather than just the barcode.

Can I configure the Print Button to only print the Ifame it is in rather that the whole screen?

Maybe a custom action?