Connect pdf report with the UI