ActiveStorage PDF Analyzer
I found this code while looking through some EDA project folders on my laptop. It adds a PDF analyzer to ActiveStorage by checking the mime type of the uploaded file for application/pdf and then attaches the metadata from the pdf-reader gem. 1. Add the pdf-reader gem to your Gemfile gem "pdf-reader", "~> 2.14" 2. Add...