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:
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?
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.