I usually measure down from the head 100mm, then 700 down, 1300 down and 100 up from the floor ( this is based on 1980mm doors ). I then measure in 20mm off each side of the lining and mark that off on each height line. This gives 8 fixings per side and always avoids hinges and lock keeps etc. I use folding wedges right above or below each pair of screws. If the stud or blockwork isnt square with the opening, use weges independently, not as folding wedges.
Check your floor for level both across the doorway and the door open position. Assuming all ok, cut the lining uprights to length, allowing for floor coverings, gaps and the trench in the head. Cut head to length, spacing the trenches equally from the overall width ( unless the opening is seriously out of level ).
Put the lining together and slot in place. Gently wedge the top in place, checking the alignment for plastering. pin in the top hinge side with screws, then level down the side and mark the floor so you know where it should line up. Then put the level on the face of the hinge side lining and wedge out the bottom to suit. Make sure your edge mark is in line and pin in the lower 2 screws. Use your level and wedges to do the middle section.
At this point i gently add a touch od pressure to the wedges, then tighten screws and check level. Repeat on latch side, making sure you head is level. Once pinned in, measure the width at top. Middle and bottom on both edges of the lining, should all be the same.....
Next, bone it in.... stand in the room, checking the edge of one door lining against the opposite edge of the other door lining ( you are looking diagonally through the doorway to see both edges ) if it is good, they will line up. If not, work out why.
Now foam.