Skip to main content

Notifications

Power Apps - Power Apps Experimental Features
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.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard

Featured topics