Is there a dynamic way to call the thumbnail preview of a PDF uploaded into an ACF file field?

I’m using the included Advanced Custom Fields Pro plugin to build out a resource center where one can browse and download PDF files. In its most basic form, the setup involves a custom post type with two custom fields: 1) a file upload (for the PDF) and 2) an image field (for a screenshot or preview of the PDF).

The process at this time is to manually create a preview or screenshot of the PDF using Acrobat or Photoshop and then upload that JPEG into the image field while also uploading the PDF itself to the file field. The frontend displays the preview and offers the PDF for download via a download button (both via the dynamic functions of the page builder, and now using the layout builder too, whereas previously it was using a PHP template). It is really quite nice. But is there a way to dynamically or automatically call the WordPress-generated thumbnail / preview of the PDF from within the page / layout builder?

To add to my original post, I know that WP generates a thumbnail of the uploaded PDF (and in various resolutions, too). What I am after is how to dynamically get the URL of the full size preview so that I can use it dynamically in an image field in a looper or in the layout builder.

Hi @cglobal,

By default, the WordPress does not generate thumbnails from the PDF files, it might be some external plugins or code that helps on that.

What you are expecting is a part of customization and beyond the scope of our theme support. I would suggest you hire a developer who can assist you in doing the customization or avail of our newly launched service called One, where the customization questions are answered.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.