title: Printing a capture of Dialog/Popup only
body: <p>So in my app I want to get a popup dialog to be printed once a certain button is clicked. (assuming that the phone is connected to the printer via Wifi/bluetooth)</p>
  
  <p><a href="https://i.imgur.com/fvSbGq3.png?1" rel="nofollow noreferrer"><img src="https://i.imgur.com/fvSbGq3.png?1" alt="Dialog popup"></a></p>
  
  <p>How can I do it? If I do it by first taking screenshot then there would be useless background coming back as well. I only want the dialog (no other view).</p>