mediawiki-extensions-PdfHan.../extension.json
Kunal Mehta 57b8c36e38 Use librarized XMPReader class and minor cleanup
* Use ::isSupported() instead of checking for a specific function manually
* Remove mention of the XMPGetInfo hook, which was removed in 4feb2ac7f2224d

Depends-On: Ic9044bf3260d1a474a6c74844949602441ffc865
Change-Id: I4333d427a2039aaffb897a1f41504b74d60c3c8b
2018-05-31 19:49:15 -07:00

50 lines
1.1 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.32.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": "includes/PdfImage.php",
"PdfHandler": "includes/PdfHandler.php",
"CreatePdfThumbnailsJob": "includes/CreatePdfThumbnailsJob.php"
},
"manifest_version": 1
}