Assuming the hinges were more or less correctly positioned in the first case there are means of adjusting the height of the door by a small amount by slackening the screws attaching the inner part of the hinge to the cupboard, sliding up or down, and then retightening the screws.
To tilt the door to make the spaces around the door equal there are two screws on the arm which projects towards the inside of the cupboard. The screw towards the outside of the door is adjustable so that when the other screw is tightened the part of the door, depending wether the upper or lower hinge is being adjusted, is moved outwards or inwards. Slacken the outer screw first, then tighten the inner screw. Then note wether the door needs altering to make the spaces between it and the frame equal. Then by adjusting the outer screw of the upper or lower hinge the door can be tilted slightly to make the spaces equal. Before altering the outer screw slacken the inner screw, adjust the outer screw, then retighten the inner screw. A little experimenting is needed to get the spacing right.
Bob Stenton., February 2011