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.
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
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.
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
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
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.
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
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional