Hi all,
I have a Flow that gets attachments from a SharePoint list, creates PDFs out of them using the Adobe convert image to PDF action. The number of list items and attachments will vary.
Now I need to use the Adobe Merge PDFs action to merge all of these PDFs.
It needs to be dynamic.
I've tried adding the file contents to an array like in this guide and then dropping the array into the File Content part of the Merge PDFs, but I get the error:
"For application/pdf mime-type The input file appears to be corrupted and cannot be processed."
Has anyone done anything similar?
Solved! Go to Solution.
Looks like it was an issue caused by an earlier step in my flow, the action is now working properly.
Hi SylvieLet17,
Thanks for your answer. It was a help, and got me a long way down the road. I found a solution which seems to work now and I'll put it into production tomorrow.
I don't seem to have permission to upload a photo, so let me try to explain what I did:
1. After getting the file content, I set the value of my first "Append to array" command to be the "File Content" dynamic content item.
2. Then, after getting the file content for the subsequent files, I had to set the value of all subsequent "Append to array" commands to include the base64 function like this:
Note - the expression for the "$content" comes from the expression builder, and is actually:
hi @SylvieLet17 you can find here some options
Solved: Merging two pdf files - Power Platform Community (microsoft.com)
Solved: Merge PDF Files - Power Platform Community (microsoft.com)
Proud to be a Flownaut!
Thanks Christian, I won't be getting a subscription, and I need a sustainable solution so no free trials. I will look at the Cloudmersive tool, but specifically wondering if anyone has experience with the Adobe action, since it seems to be capable of accepting arrays and I'd rather use the actual Adobe tool.
Thanks again.
Looks like it was an issue caused by an earlier step in my flow, the action is now working properly.
Hi SylvieLet17, I'm running into the same issue. Would love to connect with you to learn how you were able to use the Adobe Merge PDF from Array too. Could you share how you constructed your array please? Thanks.
Hope this helps:
Thanks - helpful to guide how to construct the array. I'm still getting the same error unfortunatley. What was the issue you noted earlier in your flow? Maybe it's the same for me too...Thanks.
Hey timbo23, sorry this took me so ridiculous long to answer...things get in the way you know?
I JUST fixed it properly (I think) :
Basically - try adding the "$content-type=application/pdf" part and the curly brackets. That should work
Hi SylvieLet17,
Thanks for your answer. It was a help, and got me a long way down the road. I found a solution which seems to work now and I'll put it into production tomorrow.
I don't seem to have permission to upload a photo, so let me try to explain what I did:
1. After getting the file content, I set the value of my first "Append to array" command to be the "File Content" dynamic content item.
2. Then, after getting the file content for the subsequent files, I had to set the value of all subsequent "Append to array" commands to include the base64 function like this:
Note - the expression for the "$content" comes from the expression builder, and is actually:
Dear Expertise/ Specialist, @SylvieLet17 @timbo23
I have encountered the flow error with message “For application/pdf mime-type The input file appears to be corrupted and cannot be processed.” On the Flow of “Adobe Merge PDFs”. And having the similar problem. I would greatly appreciate it if you could share your successful scenario. Much Obliged.
I have 2 Tables/ Lists and the flows below:
I would very appreciate your help. Best.
Or Would you please share how the appropriate parameters that "Merge PDF" API accept. Much obliged.
User | Count |
---|---|
89 | |
41 | |
22 | |
20 | |
16 |
User | Count |
---|---|
130 | |
51 | |
48 | |
36 | |
26 |