aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/config_spec.ini
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2013-03-27 12:21:10 +0200
committerAlon Levy <alon@pobox.com>2013-04-15 09:51:21 +0300
commita80ebf3b64dce807d84ab3993984c211f55b47db (patch)
tree2e8eaebf18414ee511c0dc476a2be8d78253e46f /mediagoblin/config_spec.ini
parent3cadb4a6cd1d5cfdef8712d00e4594345a15b4a7 (diff)
downloadmediagoblin-a80ebf3b64dce807d84ab3993984c211f55b47db.tar.lz
mediagoblin-a80ebf3b64dce807d84ab3993984c211f55b47db.tar.xz
mediagoblin-a80ebf3b64dce807d84ab3993984c211f55b47db.zip
add pdf media type
The new media type supports pdf and a subset of media recognized by libreoffice via unoconv. Every document added goes through: * conversion to pdf with unoconv if not already a pdf * creation of thumbnail and medium sized image, and pdfinfo generates some information (even for unoconv produces docs - should fix this) Poppler (pdftocairo, pdfinfo) is used. http://poppler.freedesktop.org/ A working but uglified pdf.js integration exists, which is enabled by setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini) Adds one test to the test_submission test suite, and another separate test_pdf suite. The tests are only run if media_types.pdf.processing.check_prerequisites passes, so the test suite will not require any extra package. TODO: make test suite say 'skipped' in that case instead of just 'ok' Signed-off-by: Alon Levy <alon@pobox.com>
Diffstat (limited to 'mediagoblin/config_spec.ini')
-rw-r--r--mediagoblin/config_spec.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/config_spec.ini b/mediagoblin/config_spec.ini
index e830e863..399a4a13 100644
--- a/mediagoblin/config_spec.ini
+++ b/mediagoblin/config_spec.ini
@@ -125,6 +125,8 @@ spectrogram_fft_size = integer(default=4096)
[media_type:mediagoblin.media_types.ascii]
thumbnail_font = string(default=None)
+[media_type:mediagoblin.media_types.pdf]
+pdf_js = boolean(default=False)
[celery]
# default result stuff