3.0.0
- Allow to perform
dimension
/aspect_ratio
validations on single page pdf (#374) - Added
pages
validator to validate pdf number of pages. - Added
equal_to
option toduration
,size
andtotal_size
validators.
Version 3 comes with the ability to support single page pdf dimension / aspect_ratio analysis, we had to make a breaking change:
- To analyze PDFs, you must install the
poppler
PDF processing dependency- It's a Rails-supported PDF processing dependency (https://guides.rubyonrails.org/active_storage_overview.html#requirements)
- To install it, check their documentation at this link.
- To check if it's installed, execute
pdftoppm -h
. - To install this tool in your CI / production environments, you can check how we do it in our own CI (https://github.com/igorkasyanchuk/active_storage_validations/blob/master/.github/workflows/main.yml)
Note that, if you do not perform dimension
/ aspect_ratio
validations on pdf, the gem will work the same as in version 2 without any breaking change.