Think you would be better with a jab of metcam.
Paracetamol and Ibuprofen are both used in weaned pigs for the treatment of respiratory diseases particularly ARDS, as part of a combination of treatments with other drugs, (not together) but they are used to reduce temperature not control pain. I would not recommend you try it without vet recommendation, as it is unlikely to work effectively, and may have undesired effects.