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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard