Can we automatically download the print format PDF and attach it to the same customer’s record?

Can we automatically download the print format PDF and attach it to the same customer’s record?