I am having the worst time trying to get a preview image of any pdf files to show in the same Gallery Image Control as the 'image' files (jpg, png, bmp) in the same library.
Consequently, I've determined to try another route.
Intent:
1. I have a pdf icon image that I'm going to place in a second image control in the Gallery.
2. I'll overlay the image controls
3. If the file is an image the original control appears with the file preview in it
4. If the file is a pdf the new image control (with the pdf symbol) should appear in it
5. I'd like to do this by file extension, if possible. Is there a way to write a condition that says -
'if Image2.Image file extension = .pdf then visible 'true' else 'false'?
I found this sort condition that uses a similar process; my guess is its possible in some form or fashion, based on the below?
SortByColumns( Filter( ProdDocsStructure, Project = projectCode, DefaultFolder = selectedFolder, ParentItem = idParentItem, EndsWith('File name with extension', "pdf")