Custom PDF template for each invoice group?

Hello friends , i would like to know is it possible to make a custom pdf template for each invoice group ?

Please search the forum before posting: Selectable PDF template for customer, quote, invoice, group