Setup:Installation Guide/Advanced/Maintenance scripts/dumpPDF: Difference between revisions

No edit summary
 
Line 1: Line 1:
[[Setup:Installation_Guide/Advanced/Maintenance_scripts|{{Icon|bi bi-arrow-right-circle|||}} all maintenance scripts]]
[[Setup:Installation_Guide/Advanced/Maintenance_scripts|{{Icon|bi bi-arrow-right-circle|||}} all maintenance scripts]]
==Reference==
==Extension==
BlueSpice Extension: [[Reference:BlueSpiceUEModuleBookPDF|BlueSpiceUEModuleBookPDF]]
BlueSpice Extension: [[Reference:BlueSpiceUEModuleBookPDF|BlueSpiceUEModuleBookPDF]]


==Usage ==
==Usage ==
This script allows to export the wiki pages '''from all content namespaces''' to PDF.
To run the script, execute:<syntaxhighlight lang="text">
To run the script, execute:<syntaxhighlight lang="text">
php {MW_ROOT}/extensions/BlueSpiceUEModuleBookPDF/maintenance/dumpPDF.php --file:<localpath> --limit:100 --mail:admin@mymail.com
php {MW_ROOT}/extensions/BlueSpiceUEModuleBookPDF/maintenance/dumpPDF.php --file:<localpath> --limit:200 --mail:admin@mymail.com
</syntaxhighlight>
</syntaxhighlight>
==Configuration==
==Options==
 
*<code>--file:</code> Defines the output path and the base filename.  <br />This name will be appended with the namespace number and, if  <code>--limit</code>  is set, with the split group. ''Expamle:'' <code>--file=/tmp/test.pdf</code> will result in <code>/tmp/test_0.pdf</code> or <code>/tmp/test_0_ABC.pdf</code>,
*<code>--limit:</code> Sets a limit for wikipages in a namespace included in one pdf. If the limit is exceed, the namspace will be split into pdfs depending on the first character of the page name. If parameter <code>--limit</code>  is not set, all pages of a namespace will be exported to one pdf file.
*<code>--verbose</code>:  Runs the script in verbose mode.
*<code>--mail:</code> E-mail address for a notification email.
 
 
 


==Options==


*<code>file:</code> Absolute path of the output pdf file
*<code>limit:</code> Limit of pages for single pdf export. If more pages are in the namespace the pdf is split.
*<code>verbose</code>:
*<code>mail:</code> E-mail address for notification email





Latest revision as of 10:21, 19 July 2023

all maintenance scripts

Extension

BlueSpice Extension: BlueSpiceUEModuleBookPDF

Usage

This script allows to export the wiki pages from all content namespaces to PDF.


To run the script, execute:

php {MW_ROOT}/extensions/BlueSpiceUEModuleBookPDF/maintenance/dumpPDF.php --file:<localpath> --limit:200 --mail:admin@mymail.com

Options

  • --file: Defines the output path and the base filename.
    This name will be appended with the namespace number and, if --limit is set, with the split group. Expamle: --file=/tmp/test.pdf will result in /tmp/test_0.pdf or /tmp/test_0_ABC.pdf,
  • --limit: Sets a limit for wikipages in a namespace included in one pdf. If the limit is exceed, the namspace will be split into pdfs depending on the first character of the page name. If parameter --limit is not set, all pages of a namespace will be exported to one pdf file.
  • --verbose: Runs the script in verbose mode.
  • --mail: E-mail address for a notification email.




You can see the list of possible options with descriptions by using the following command:

php {MW_ROOT}/extensions/BlueSpiceUEModuleBookPDF/maintenance/dumpPDF.php --help



To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions