No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Textbox|boxtype=warning|header=Review PDF export compatibility!|text=The [[en4:Setup:Installation_Guide/Advanced/Maintenance_scripts/export|PDF export script for BlueSpice 4]] is different.|icon=yes}} | {{Textbox|boxtype=warning|header=Review PDF export compatibility!|text=The [[en4:Setup:Installation_Guide/Advanced/Maintenance_scripts/export|PDF export script for BlueSpice 4]] is different.|icon=yes}} | ||
== Export PDF from | == Export PDF from CLI == | ||
After creating a specificaton | After creating a specificaton JSON file, the pdf export can be triggered from CLI. | ||
Example json content: | Example json content: |
Revision as of 08:34, 25 April 2025
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