web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Merge files(.doc, .tif...
Power Automate
Answered

Merge files(.doc, .tiff, .txt, JPG, PDF) to 1 PDF file

(0) ShareShare
ReportReport
Posted on by 47

Hello,

 

i have a folder within several files, like .txt, .doc, .jpeg, TIFF and .PDF files. These files i want to filter on a string f.e. <?xml version='1.0' encoding='UTF-8'?>.

The files who contains the filter, can be deleted. 

The other files must be converted to 1 PDF file.

I want to create a flow in Power Automate Desktop which can make this happen. 

 

I have already tried to make a flow, but that doesn't do the job that i wish for.

 

dorak1005_0-1697467095518.png

 

 

So the information in .txt, .doc, pictures in tiff en jpeg format and pdf files, must me converted/merged to 1 pdf file.

 

Hopefully somebody can help me with this. 

 

Looking forward to your reply.

 

With regards,

Diana

I have the same question (0)
  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    Hi @dorak1005 

     

    First, I'm not able to see the screenshot clearly

    Can you please tell me what steps you tried and where you are getting the issue?

     

    Thanks,

    Srini

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It really is hard to see what you have there in the screenshot. Can you please provide a higher resolution screenshot and also provide some explanations on what it is for (what the scripts and the HTTP request are supposed to do).

     

    The thing is that there is no native way in PAD to convert files to a PDF. In order to do that, you will likely need to "print" them to PDF using the printer that's installed on your machine. You can do that by running a CMD command, or a PowerShell/VBScript script. I assume that's what you're doing with PowerShell there, but I can't really tell from the screenshot.

     

    Once you have printed them to PDF, you can then use the Merge PDF files action to merge them.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • dorak1005 Profile Picture
    47 on at

    Hi Agnius,

     

    thank you for your response.

    I taught it would be possible converting picture files to html and convert them to PDF. 

    Is it possible to unzip a file(with .txt, .doc, .jpeg, .pdf and .TIFF documents in the file), that will be send to the inbox, check these files on specific contents and when the file contains specific contens, to delete this file. 

    All files that then remains, must be printed to pdf files and then merge to 1 PDF file (included pictures).

    Is that possible? 

    I have a flow in Power Automate Cloud, but have problems rewriting them to Power Automate Desktop.

    Enclosed you will find the POC file in stead of the POD file. 

     

    Hopefully you can help me. 

     

    With regards,

    Diana 

  • dorak1005 Profile Picture
    47 on at

    Hi Srini84,

     

    thank you for your response.

    I taught it would be possible converting picture files to html and convert them to PDF. 

    Is it possible to unzip a file(with .txt, .doc, .jpeg, .pdf and .TIFF documents in the file), that will be send to the inbox, check these files on specific contents and when the file contains specific contens, to delete this file. 

    All files that then remains, must be printed to pdf files and then merge to 1 PDF file (included pictures).

    Is that possible? 

    I have a flow in Power Automate Cloud, but have problems rewriting them to Power Automate Desktop.

    Enclosed you will find the POC file in stead of the POD file. 

     

    Hopefully you can help me. 

     

    With regards,

    Diana 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The kind of functionalities you have there in your cloud flow are not available in PAD. These are two separate tools after all, and they don't always have the same functionalities. They complement each other, but cannot replace each other, really.

     

    To answer the other question - it is possible to retrieve email attachments and unzip a file in PAD. There are native actions for that. Checking the contents is a different thing. You can convert a file to binary, but that's about as much. If you can send it to some service that can digest a binary string, you can use that. Otherwise, not much you can do with that.

     

    Checking for specific contents will absolutely need to be defined per file type. You can read .txt and .pdf files natively in PAD. You cannot read .doc files, but can use PowerShell or VBScript to do it. As for images, you will need to use OCR to get their contents.

     

    Again, you will likely need to use scripting to send your files to a PDF printer in order to save them as PDF. And you may in fact need to define that per file type, actually, having different scripts for different file types. But it might also work universally - try and test it.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard