User Defined Fields

Good Day, I'm populating User Defined Fields in invoice using Backend when an invoice is saved or processed. How can I make this data be available when Documented is printed after processing. I have already mapped them on the Document Layout but nothing is coming even though they are there in the Database