mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-14 19:36:00 +00:00
bf7398e78e
Bug: T252470 Change-Id: Id77e6c33af89e293c9d3440f2988acc1c35a9c7c
66 lines
1.2 KiB
JSON
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
|
|
}
|