Vulnerability in EPiServer.Forms
Is it possible for EPiServer 7.5 to automatically generate a thumbnail for a PDF file?
I have a block that currently lists out all PDF files in links. I want to include a thumbnail beside each PDF link.
I want to be able to do something like:
@foreach (var asset in assets.Where(a => a.MimeType == "application/pdf"))
However, the Thumbnail property of the GenericMedia asset is null. How do I make the GenericMedia class to automatically populate this property for PDF's?
Any help will do!
Sorry, GenericMedia is a class that inherits from MediaData (EPiServer.Core). So the thumbnail property is actually off the MediaData class.