Extract xml file from PDF file

Hello,
I want to extract xml files from PDF. These are e-invoices in the so-called ZUGPFeRD format.
Here an xml file is integrated into a PDF file as an attachment.

Does anyone here have an idea?

Thank you.