If you're after a voltage from the HV output, then pin 7 is the ground. For the other windings, pin 1 and 18 are the ground pins.
Normally it doesn't matter, but for a device with high voltage windings such as this, using the wrong pins as ground could result in internal arcing.