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 / Save gallery as pdf wi...
Power Apps
Unanswered

Save gallery as pdf with multiple pages in sharepoint library

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I wanted to save a gallery as a pdf in a sharepoint library. I followed a tutorial on youtube where they describe very well how to do this with a flow.

The result of the flow is picture 1.

 

They also explain the script you have to you use when you click on de PDF button.
This is the script:
wiw.Run({file:{name:"WieIsWaar.pdf", contentBytes: PDF(WiwOverzicht,{Orientation:PaperOrientation.Landscape,Size:PaperSize.A4,ExpandContainers:true})}})

 

When I test the flow  inside powerapps everything works fine. I go to my sharepoint library and the pdf has been saved and when I open it I get the result that I want, with 2 or 3 pages like the pdf should be.

 

Now comes the problem. When I publish my app that I made to my sharepoint and I want to use it, he create a pdf in that library but when I open the pdf I only see what I see on my screen (one page) and not the entire pdf what I saw when I tested it. The strange thing is, when I go back to my app in powerapps en test it again from there it works perfectly. The pdf appears in my library and every page is there. But when I do the same from sharepoint he only gives one page.

When I go back to my flow, I see that my ‘File name’ is changed, see picture 2.

Could this be the problem or is it something else?

 

Picture 1

Dankes_0-1708686038095.png

Picture 2

Dankes_1-1708686068932.png

 

Thank yoy for helping.
Gtz

 

Categories:
  • Dankes Profile Picture
    10 on at

    Does anyone have a solution for this please?

  • Dankes Profile Picture
    10 on at

    Can someone help me please?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard