How to auto populate PDF with PDF or XML data?

Hi there,

I have a file that comes in PDF or XML and I need to auto populate some filds in another PDF. How can I do that?

Thanks