mediawiki-extensions-PdfHan.../extension.json
Reedy bf7398e78e Convert to manifest_version 2
Bug: T252470
Change-Id: Id77e6c33af89e293c9d3440f2988acc1c35a9c7c
2020-05-12 02:04:08 +01:00

66 lines
1.2 KiB
JSON

{
"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-or-later",
"type": "media",
"requires": {
"MediaWiki": ">= 1.34.0"
},
"config": {
"PdfOutputExtension": {
"value": "jpg"
},
"PdfHandlerDpi": {
"value": 150
},
"PdfCreateThumbnailsInJobQueue": {
"value": false
},
"PdfPostProcessor": {
"value": "/usr/bin/convert"
},
"PdfHandlerJpegQuality": {
"value": 95
},
"PdftoText": {
"value": "/usr/bin/pdftotext"
},
"PdfProcessor": {
"value": "/usr/bin/gs"
},
"PdfInfo": {
"value": "/usr/bin/pdfinfo"
}
},
"MessagesDirs": {
"PdfHandler": [
"i18n"
]
},
"Hooks": {
"UploadVerifyFile": [
"CreatePdfThumbnailsJob::insertJobs"
],
"ResourceLoaderRegisterModules": [
"PdfHandler::registerWarningModule"
]
},
"JobClasses": {
"createPdfThumbnailsJob": "CreatePdfThumbnailsJob"
},
"MediaHandlers": {
"application/pdf": "PdfHandler"
},
"AutoloadClasses": {
"PdfImage": "includes/PdfImage.php",
"PdfHandler": "includes/PdfHandler.php",
"CreatePdfThumbnailsJob": "includes/CreatePdfThumbnailsJob.php"
},
"manifest_version": 2
}