diff options
author | Terence Lee <hone02@gmail.com> | 2018-02-05 19:33:35 -0600 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-03-06 13:33:33 -0500 |
commit | 0b717c20458d12191f479fc693dd1ca1eb11c050 (patch) | |
tree | 6bcd9dd08f792a35235a96f392a79fd2ac0cdbc2 /activestorage/app/models | |
parent | 060ed201e444785135ce9a4baea069079257295e (diff) | |
download | rails-0b717c20458d12191f479fc693dd1ca1eb11c050.tar.gz rails-0b717c20458d12191f479fc693dd1ca1eb11c050.tar.bz2 rails-0b717c20458d12191f479fc693dd1ca1eb11c050.zip |
Provide an alternative PDF previewer based on Poppler
mutool is licensed under the Affero GPL, which has strict distribution requirements.
Poppler is licensed under the more liberal GPL, making it a good alternative for those who can't use mutool.
Diffstat (limited to 'activestorage/app/models')
-rw-r--r-- | activestorage/app/models/active_storage/preview.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activestorage/app/models/active_storage/preview.rb b/activestorage/app/models/active_storage/preview.rb index 45efd26214..2b87897183 100644 --- a/activestorage/app/models/active_storage/preview.rb +++ b/activestorage/app/models/active_storage/preview.rb @@ -21,10 +21,9 @@ # # Outside of a Rails application, modify +ActiveStorage.previewers+ instead. # -# The built-in previewers rely on third-party system libraries: -# -# * {ffmpeg}[https://www.ffmpeg.org] -# * {mupdf}[https://mupdf.com] (version 1.8 or newer) +# The built-in previewers rely on third-party system libraries. Specifically, the built-in video previewer requires +# {ffmpeg}[https://www.ffmpeg.org]. Two PDF previewers are provided: one requires {Poppler}[https://poppler.freedesktop.org], +# and the other requires {mupdf}[https://mupdf.com] (version 1.8 or newer). To preview PDFs, install either Poppler or mupdf. # # These libraries are not provided by Rails. You must install them yourself to use the built-in previewers. Before you # install and use third-party software, make sure you understand the licensing implications of doing so. |