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 doesn't a...
Power Apps
Unanswered

PDF function doesn't allow for grouped data or images from SharePoint library

(1) ShareShare
ReportReport
Posted on by 1,207

Users frequently request to produce reports that include images stored in a SharePoint libary. I also need to be able to produce a PDF report from grouped data i.e. nested galleries.

 

Survey app scenario:

 

User completes a survey that consists of multiple observations for a single asset. Several images are uploaded per observation.

 

They would like to click a button to email or print a report with this data. Neither the PDF or Print functions are able to do this.

 

Asset Number 1

 - Observation 1

   - image 1

   - image 2

-Observation 2

   - image 1

 

Asset Number 2

 - Observation 1

   - image 1

-Observation 2

   - image 1

-Observation 3

   - image 1

   - image 2

   - image 3

 

Categories:
I have the same question (0)
  • Rosrivera Profile Picture
    14 on at

    I think it can be posible only with automate.

  • Digital Profile Picture
    1,207 on at

    @Rosrivera , that's correct. I have now built a Flow that does this by getting the base64 of the images and building a HTML table of the data which is emailed to the client for printing.

     

    Unfortunately there's no free method that I know of to produce a PDF containing lots of images. The OneDrive conversion is limited to 2MB which is rapidly exceeded when adding images.

     

    It would be awesome if we could produce multi page PDFs containing images direct from Power Apps. Ideally utilising nested galleries.

     

     

  • Digital Profile Picture
    1,207 on at

    I made a simple test to see if I could display a gallery containing images sourced from a SharePoint library in the PDF viewer. I also sent the PDF output as an email. In both cases the images don't appear.

     

    The image control in the gallery uses ThisItem.Thumbnail.Medium. Below is a screenshot showing the PDF viewer with the output of the PDF function and no images. If I change the image source to an image stored in the app it works.

     

    I don't know if I'm doing something wrong here but this seems like an obvious omission.

     

    Screen Shot 2022-11-03 at 12.11.05.png

     

    btnPDF.OnSelect

    Set(
     gblPDFOutput,
     PDF(
     Gallery1,
     {ExpandContainers: true}
     )
    );
    Office365Outlook.SendEmailV2(
     User().Email,
     "PDF",
     "PDF from Power Apps",
     {
     Attachments: Table(
     {
     Name: "Test.pdf",
     ContentBytes: gblPDFOutput
     }
     )
     }
    )

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard