We read in the quran that the flesh of swine is impermissible(occurs four times elsewhere in Quran)
“He has forbidden you only the Maytah (dead animals), and blood, and the flesh of swine, ...”
[al-Baqarah 2:173]
The bones of swine is used to extract gelatin to make drug capsules. Only the gelatin compound is extracted from the composite bone which certainly does not retain any of the impurities of the pig and is probably scientifically equivalent to cow gelatin, so how can a bone extract become Haram, whereas Allah swt has prohibited "flesh of swine" and not bone of swine?
Some relevant examples:
Urine is Najis , yet modern scientific techniques can extract 100% pure water (H2o) out of the urine, the source is impure , the derivation is pure
Animal Carcass(including pig) when buried under ground and a tomato plant grows over this soil then it would probably contain the nutrients found in the pig. DNA analysis can probably trace back the nutrients in the plants to the animal DNA. Yet the plant is Halal (This example may be wrong scientifically)
Pig Ash , when pig bones are heavily burned then technically I feel no DNA remains and its only carbon, again source is impure derivation seems to be pure.
Dead Carcass , pig and Non Zabiha meat and its organic components are indeed trivially Haram but can the same ruling apply when they are completely transformed in another form or specific elements extracted from them?