extracted main method from TabUIMainWindow to new Tab2PDF class