This enzyme catalyses the condensation reactions resulting in the formation of all-trans-heptaprenyl diphosphate, the isoprenoid side chain of ubiquinone-7 and menaquinone-7. The enzyme adds four isopentenyl diphosphate molecules sequentially to farnesyl diphosphate with trans stereochemistry.