mediawiki-extensions-PdfHan.../extension.json
Kunal Mehta b253dc04c4 Port retrieveMetaData to BoxedCommand
Combine all 3 shellouts into one script, retrieveMetaData.sh.

The script is executed by /bin/sh by default, it can be changed for
Windows users by setting $wgPdfHandlerShell.

pdftotext is a bit special since it's behavior varies based on the
program's exit code, so save that in a file so we can check it
independently of the overall exit status.

Bug: T289228
Change-Id: I29750bcc282bd5f9b8e2f79aa340869738ea5f5b
2021-09-20 10:28:27 -07:00

63 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.36.0"
},
"config": {
"PdfOutputExtension": {
"value": "jpg"
},
"PdfHandlerDpi": {
"value": 150
},
"PdfPostProcessor": {
"value": "/usr/bin/convert"
},
"PdfHandlerJpegQuality": {
"value": 95
},
"PdftoText": {
"value": "/usr/bin/pdftotext"
},
"PdfProcessor": {
"value": "/usr/bin/gs"
},
"PdfInfo": {
"value": "/usr/bin/pdfinfo"
},
"PdfHandlerShell": {
"value": "/bin/sh"
}
},
"MessagesDirs": {
"PdfHandler": [
"i18n"
]
},
"ResourceModules": {
"pdfhandler.messages": {
"messages": [
"pdf-file-page-warning",
"pdf-file-page-warning-header",
"pdf-file-page-warning-info",
"pdf-file-page-warning-footer"
]
}
},
"MediaHandlers": {
"application/pdf": "MediaWiki\\Extension\\PdfHandler\\PdfHandler"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\PdfHandler\\": "includes/"
},
"manifest_version": 2
}