They have machines at arrivals/departure where people can fill in this form offline and print out a receipt or something. I don’t know exactly how it works but I’ve seen people using them at PVG.
They need to get rid of this form, causes unnecessary pile ups on both arrival and departure.