As I remember as a kid who used to shadow the phone guys, they had preprinted cards for the prefix, later with area code and prefix, so all the installer had to do was stamp the last 4 digits. I believe they were on perforated or scored strips. Western Electric and Automatic Electric undoubtedly had a massive printing shop that made them up for all the areas they served.