They are blank, because of your print settings in F12....... They contain data....but it is invisible because of your setting "no" to various options. If you still want to eliminate those spaces then you need to write your own INVOICE print code.