Fully automatic printing and packing machine