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

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Suggested answer

PDF Viewer Not Showing All Images

(1) ShareShare
ReportReport
Posted on by 5,177 Super User 2025 Season 2
This is a bit complicated.

1. I have a Gallery_1. Gallery_1 is displaying images from a SharePoint Library by way of a Collection (col_Inspection_Photos).

2. The OnVisible of the screen is preparing two collections; one is bringing in all images from the SP Library, the other is placing
all those images in a final collection - (I believe there is a redundancy here, but I haven't addressed it as yet).
ClearCollect(col_All_Resume_Photos,col_Inspection_Photos);
 
ClearCollect(col_Final_Inspection_Photos,col_All_Resume_Photos)


3. Gallery_1 Items has - (the collection above and below LOOK the same, but they are not)
If(RPIPS_Photo_Type_Radio.Selected.Value = "Track Photos",
    Filter(col_Final_Inspection_Track_Photos ,Inspection_Number = RPIPS_Inspection_Number_Fld.Text))

2. I have an Add Media button. The Add Media button is adding additional images to Gallery_1 as necessary.

3. In the representation below the first two images are from the SP Library, by way of col_Final_Inspection_Track_Photos, the third image
was added using the Add Media button.



4. The Add Media button is adding any new images to Gallery_1 and collection col_Final_Inspection_Track_Photos. All of the images are to
be previewed in a gallery on another screen.

Add Media Button 'OnSelect' has -
If(RPIPS_Photo_Type_Radio.Selected.Value = "Track Photos",

Set(
    varInspectionPhotoName,
    GUID()
);
    Collect(
        col_Final_Inspection_Track_Photos,
        {
            DisplayName: RPIPS_Image_Description_TI.Text & "-" & RPIPS_Inspection_Number_Fld.Text & ".jpg",
            Id: varInspectionPhotoName,
            Description: RPIPS_Image_Description_TI.Text,
            Inspection_Number: RPIPS_Inspection_Number_Fld.Text,
            Photo_Type: "Track Photos",
            Value: RPIPS_Add_Uploaded_Photo_Media_Button.Media,
            ImageSource: RPIPS_Add_Uploaded_Photo_Media_Button.Media,
            ImageDescription: RPIPS_Image_Description_TI.Text & "-" & RPIPS_Inspection_Number_Fld.Text
        }
    )
);
 
5. The Review gallery displays all three images, but only if I use both 'ThisItem' commands ThisItem.Thumbnail.Medium & ThisItem.Value.
    If I use only the ThisItem.Thumbnail.Medium only the + and Power Apps images appear.
    If I use only the ThisItem.Value only the food image appears.

Preview Gallery Items has -
Filter(col_Final_Track_Inspection_Photos,Photo_Type = "Track Photos" && Inspection_Number = RTPGC_Report_Number_TI_3.Text)

Gallery Image -
ThisItem.Thumbnail.Medium & ThisItem.ImageSource




6. The screen above has a Create PDF button that has the following formula, that uses the content of Resume_RTPG_Container
to populate the PDF Viewer document control.
Set(
    varResumeTrackPhotosReportPDFBlob,
    PDF(
        Resume_RTPG_Container,
        {
            Orientation:PaperOrientation.Portrait,
            Size:PaperSize.A4,
            Margin:"0px",
            DPI: 50})
);


7. The goal is to have all of the images appear in a PDF Viewer control. I can get all of
the image descriptions to show, but only the food image appears in the PDF Viewer.

8. The PDF View Document has - varResumeTrackPhotosReportPDFBlob

9. I am unable to configure this approach in a way where all of the images show together.
What am I missing?
I have the same question (0)
  • Phineas Profile Picture
    5,177 Super User 2025 Season 2 on at
    PDF Viewer Not Showing All Images
    @wolenberg_

    Thank you for you detailed reply.

    I wasn't able to get your suggestions to work for me.

    I decided to start from the beginning. I rolled everything back and started from scratch.

    The intent:
    This is a 'Resume Inspection' screen. Meaning, the user did not finish the original inspection,
    but did save data and images back to SharePoint.

    These screens allow the user to select a previously saved inspection number. which should
    auto-populate existing data into the screen, including previously submitted images into Gallery_1

    I can get all the data to show in the fields, but I am still having issue with how to incorporate
    any previous images in into Gallery_1 (the first image below), by default, and allow the user to add
    any new images into that same gallery.

       - I can now add 'New' images to the main Gallery.
       - I can see them in the Preview Gallery.
       - They all display in the PDF Viewer.

    My issue, at this point, is how - by default, incorporate any existing images into Gallery_1, add allowing
    the user the ability to append any new images, and all images show in the Preview and PDF Viewer.

    I need a fix that will incorporate the existing images and the new images into a single collection, in a format
    where they will display in the Preview gallery and the PDF Viewer. 

    Main Gallery Items -
    col_Inspection_Track_Photos



    Preview Gallery -
    col_Resume_Inspection_Track-Photos


    PDF Viewer -
  • Suggested answer
    wolenberg_ Profile Picture
    394 Moderator on at
    PDF Viewer Not Showing All Images
    Hello @Phineas , I think i know what is wrong at your code, there is some details that can be usefull for your review.
     
    Try to follow the next steps to fix your issue.
     
    Normalize Image Sources
    Update your collections so that all images use the same format — ideally, binary media. You can do this by:
    Using Download() to convert SharePoint images to media:
     
    ImageSource: Download(ThisItem.Thumbnail.Medium)
    Or, when building col_Final_Inspection_Track_Photos, ensure ImageSource is always a media object:
     
    ImageSource: If(
      IsBlank(ThisItem.Value),
      Download(ThisItem.Thumbnail.Medium),
      ThisItem.Value
    )
    Update Gallery Image Control
    Use only ThisItem.ImageSource in your image control:
     
    Image: ThisItem.ImageSource
     

    This ensures consistency and compatibility with the PDF renderer.

    Confirm Resume_RTPG_Container Setup
    Make sure the container includes Image controls that reference ThisItem.ImageSource, not Thumbnail.Medium.
    Example:
     
    ForAll(
      col_Final_Inspection_Track_Photos,
      ImageControl.Image = ThisRecord.ImageSource
    )
    Optional: Preload Images
    If you're still seeing blank images in the PDF, preload them using Set() or Collect() to ensure they’re fully loaded before PDF generation.
     
    If you're using AddMediaButton.Media, that’s already a binary object — perfect for PDF. But SharePoint images need to be converted using Download() or similar methods to be treated the same way.
     
     

    Summary

     
     

    Image Source

    Format Renders in PDF?
    Thumbnail.Medium URL No
    AddMediaButton.Media Binary Media
    Yes
    Download(URL) Binary Media Yes
     
     
    if this helped you or could help others in the community, feel free to give it a like or kudo — it helps surface useful answers for everyone!
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 1,019 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 436

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 281 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics