A method is presented for calculation of transmission functions for high energy photon beams through patients. These functions are being used in our clinic for prediction of portal dose images (PDIs) which are compared with PDIs measured with an electronic portal imaging device (EPID). The calculations are based on the planning CT-scan of the patient and on the irradiation geometry as determined in the treatment planning process. For each beam quality, the required input data for the algorithm for transmission prediction are derived from a limited number of measured beam data. The method has been tested for a PDI-plane at 160 cm from the focus, in agreement with the fixed focus-to-detector distance of our fluoroscopic EPIDs. For 6, 23 and 25 MV photon beams good agreement (approximately 1%) has been found between calculated and measured transmissions through anthropomorphic phantoms.