mediawiki-extensions-PdfHan.../extension.json

50 lines
1.1 KiB
JSON
Raw Normal View History

{
"name": "PDF Handler",
"author": [
"Martin Seidel",
"Mike Połtyn"
],
"url": "https://www.mediawiki.org/wiki/Extension:PdfHandler",
"descriptionmsg": "pdf-desc",
"license-name": "GPL-2.0+",
"type": "media",
"requires": {
"MediaWiki": ">= 1.25.0"
},
"config": {
"PdfOutputExtension": "jpg",
"PdfHandlerDpi": 150,
"PdfCreateThumbnailsInJobQueue": false,
"PdfPostProcessor": "/usr/bin/convert",
"PdfHandlerJpegQuality": 95,
"PdftoText": "/usr/bin/pdftotext",
"PdfProcessor": "/usr/bin/gs",
"PdfInfo": "/usr/bin/pdfinfo"
},
"MessagesDirs": {
"PdfHandler": [
"i18n"
]
},
"Hooks": {
"UploadVerifyFile": [
"CreatePdfThumbnailsJob::insertJobs"
],
"ResourceLoaderRegisterModules": [
"PdfHandler::registerWarningModule"
]
},
"JobClasses": {
"createPdfThumbnailsJob": "CreatePdfThumbnailsJob"
},
"MediaHandlers": {
"application/pdf": "PdfHandler"
},
"AutoloadClasses": {
"PdfImage": "PdfHandler.image.php",
"PdfHandler": "PdfHandler_body.php",
"CreatePdfThumbnailsJob": "CreatePdfThumbnailsJob.class.php"
},
"manifest_version": 1
}