Usually, a special type of X-ray is done to confirm whether you have a pulmonary embolism. Known as a computed tomographic pulmonary angiography (CTPA), this scan requires dye to be injected into a vein in order to capture an image of the blood vessels in the lungs.