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 |
Setting up a CronJob
To automate the export, the following CronJob is available:
php {MW_ROOT}/extensions/PDFCreator/maintenance/CreatePDF.php --specification-file={MW_ROOT}/extensions/BlueSpiceFoundation/data/spec.json