How to close a pdf report application

Hello,
I have an application used in a store to check whether barcodes of a carton are as expected. In case some products are missing, there is a call to a ReportPDF app in modal mode.
The problem is that , after printing the PDF, I would like to close / exit the modal ReportPDF.
Is it possible ?
I am thinking of using instead of a ReportPDF, a blank application, with TCPDF codes . Of course it costs time, so I was hoping of an “easy” (or at least temporary) solution .

Best Regards
Federico