Group Same Items - Print Setting

Hi Everyone,

I am new to ERPNext. We have entered same item multiple items in Sales Order. However, we would like to combine all the same items together during printing the sales invoice.

I saw there is an option to group same items together in print setting.
Also, as per the ERPNext document (Print Settings) there is way we can achieve. I been searching this for a quite few days, but I am unable to set this up.

Can you please let me know how we can achieve same item grouping option during printing?
Your help would be much appreciate.

Thanks,
Arun