Developer forum

Forum » PIM » PDF custom preview image in Assets

PDF custom preview image in Assets

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We have a customer that wants to pick the static image associated with an asset (PDF). Essentially the auto-generated image is not the desired outcome.

 

What would be the best way to do this?

We can create a file meta data custom field but:

  • There's no file picker, so the user has to type the file path
  • The UI does not pick up on custom meta data fields
  • And we have to customize the templates

 

If there would be a way for us to determine how to pick that image (similar to how in Video Streaming services you can pick the poster image), that would be a better solution, but I don't know if we can do that.

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

I think the easiest way is by naming convention - add a thumb next to the pdf on disk, and load that if found.

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

That's actually pretty smart, haven't thought of it :) I'll take a stab at that. Thanks.

 

Nuno Aguiar

 

You must be logged in to post in the forum