Business forms manufacturer Ennis Inc has agreed to buy T-shirt maker Alstyle Apparel for $242 million in stock, minus assumed debt of up to $108m.