If you are coming on work visa which is in fact a work visit, you must do your protector in Pakistan, which is not a big issue, even the travel agents also do it at their sources. But if you are coming on visit visa, then no need of anything. In both cases no need to do anything with the visa in Pakistan, just bring a photo copy of visa with you to the airport and all the rest will be done here in Qatar.