Review PDF export compatibility!The PDF export script for BlueSpice 4 is different.
Export PDF from cli
After creating a specificaton json file, the pdf export can be triggered from CLI.
Example json content:
{
"module": "batch",
"params": {
"filename": "MyExport.pdf",
"filesystem-path": "/app/d/pdfcreator/cache",
"target": "filesystem",
"user": "WikiSysop"
},
"options": {
"attachments" : true
},
"pages": [
{
"type": "page",
"target": "Main_Page"
}
]
}
Start export form CLI:
php extensions/PDFCreator/maintenance/CreatePDF.php cache/specification.json
key | possible values | module=pdf
(exports a set of wiki pages) |
---|---|---|
target | filesystem | The file is exported to a local file system |
file-name | Name of the exported PDF file | |
filesystem-path | Target file location | |
attachments | true
false |
true = attachments (links to "media" files) are included
false = no attachments are included |
type | type of resource to be exported | |
target | Name of the page to be exported |