@Arafat ,
You have got the meaning all right, but I think both are wrong.
To make a sentence passive, you should put all the elements in. Neither answer mentions the doctor.
So my answer would be:
To stop the flow of blood, pressure was applied to the wound by the doctor.