End trimming for edge banding machine