Is it possible for the component pdfprinter to have the attributes "actionlistener" and "withcallback"?
If "withprintdialog"= true, the return value would be true if OK button pressed and false if Cancel button pressed. For "withprintdialog"= false, return value would always be true.