Announcements
How can I extract an embedded PDF out of an XML file (UBL) and save it as a PDF?The embedded PDF is included in the XML as Base64 content. So I need to convert that to PDF. How to do that?
@reginaldbal you can extract the value from xml node and then pass it to create file action.
--------------------------------------------------------------------------------If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
@jinivthakkar Hello, could you elaborate on the step by step to extract PDF data from xml and store it as a PDF file, like in SharePoint. To give my context, I have 600,000 infopath forms that I have stored as xml files. We have finally gotten away from infopath. Each xml file (infopath) has one or more PDF attachments that I need to extract and store for regulator reasons. When I look at the xml file the attachment looks like it's base64. How could I do what you advised to reginaldbal. I would like to accomplish this in power automate as I have multiple points of data from the xml files going to a few SharePoint lists and the PDFs to a SharePoint library.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
trice602 224 Super User 2026 Season 1
David_MA 181 Super User 2026 Season 1
Kalathiya 97 Super User 2026 Season 1