The pig (swine) is forbidden by the Book, the Sunnah and the consensus, and any earnings obtained from it in any way are forbidden, because when Allah forbids something, He also forbids its price. Earning a living by working with it falls under this as well.
Reference: Al-Lajnah al-Da’imah: 4358