I'm trying to create a PDF preview for my PDF files, but I don't know where to start, I'm using poppler gem on Ruby on Rails.
The app is giving me this message: "ActiveStorage::UnpreviewableError in Tasks#show"
So I'm not understanding where should I need to declare the preview
Looking on google I found several sites with methods, but I don't know where to add this code, I've tried by creating a new folder on the app directory, but this didn't work.
In activestorage documentation says about requirements to use this feature.
libvips
package) or ImageMagick for image analysis and transformationspoppler-utils
package) or muPDF for PDF previewsCheck if in your environment has the requirements