Now I’m going to introduce small snippet which you can use in your swing app.
PrintableFrame is our internal interface which can be exported in pdf. As you notice we’re generating pdf reports on the fly. All files will be stored in temp directory. If you need to do a lot of such drag-and-drop actions you have to think about deletion this temp stuff.