Item table call in different doctype

I have created an item table in the lead doctype then I wanted to create a new opportunity in the lead and I wanted to copy all this table data into opportunity automatically (How I can do it)