From a80ebf3b64dce807d84ab3993984c211f55b47db Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 27 Mar 2013 12:21:10 +0200 Subject: 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 --- extlib/pdf.js | 1 + 1 file changed, 1 insertion(+) create mode 160000 extlib/pdf.js (limited to 'extlib') diff --git a/extlib/pdf.js b/extlib/pdf.js new file mode 160000 index 00000000..b898935e --- /dev/null +++ b/extlib/pdf.js @@ -0,0 +1 @@ +Subproject commit b898935eb04fa86e0911fdfa0d41828cb04802f8 -- cgit v1.2.3