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 Apps / PDF Function: PDF not ...
Power Apps
Unanswered

PDF Function: PDF not recognised properly when passed to Powerautomate

(1) ShareShare
ReportReport
Posted on by 12
I have created a PDF using the PDF Function in powerapps then passed the PDF to Powerautomate to save to a sharepoint folder. Unfortunately when opened from sharepoint the PDF doesn't display correctly, it only shows partially then reports there is an issue displaying the rest of it, and has a large file size (20mb).
 
Assuming size was a factor i ran the PDF from sharepoint through an online compression tool and it compressed the file to 350kb and displays it perfectly.
 
I tried using Encodian in Powerautomate to compress the file passed from Powerapps but after having contacted Encodian support have concluded that the file passed isn't being recognised properly by powerautomate so can't be compressed using Encodian.
 
This is the code i used to pass the PDF to Powerautomate:
 
'Copyof-PDFcompressSavetoSharepoint'.Run({file:{name:"test5.pdf",contentBytes: PDF('PDF Create Screen_1',{ExpandContainers:true})}})
Is anyone able to advise an amendment to this code to have the file recognised in powerautomate? or Reduce the file size in powerapps before converting to PDF in case this is enough to fix it?
 
Thanks.
Categories:
I have the same question (0)

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard