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"))
{
@Html.ContentLink(asset.Name, asset.ContentLink)
}
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?
Hi,
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:
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!
Thanks