You have adjustment at the big bolt bottom of the A post, add remove washers.
And
Bracket bolted to footwell, add/remove shim plates.
You will need to slacken the bolts for the roof above the windscreen too.
It can end up a big job involving moving the tub too.
Measure the door gap on the other side (the aperture!) You may have a bad door.