Wiki source code of Exports

Last modified by superadmin on 2026/10/14 18:25

Show last authors
1 Administrators export wiki content from the [[Administration Application>>doc:extensions:Extension.Administration Application]], which adds to the [[formats every user can export>>doc:documentation.xs.user.exports.WebHome]] one format of its own and the settings that decide how the other formats are produced.
2
3 Two capabilities belong to administrators only:
4
5 * [[Export content in ##XAR## format>>doc:documentation.xs.admin.exports.export-content-xar-format.WebHome]]. A [[##XAR##>>doc:documentation.xs.admin.exports.export-content-xar-format.format-specifications.WebHome]] archive is the only format XWiki reads back on [[import>>doc:documentation.xs.admin.imports.WebHome]], with the objects and attachments of each Page and, optionally, its history. The same export can be [[driven entirely from the URL>>doc:documentation.xs.admin.exports.export-content-xar-format.xar-customization-url.WebHome]].
6 * The export interface of the Administration, which selects Pages anywhere in the wiki instead of starting from the [[Page being viewed>>doc:documentation.xs.user.exports.export-page.WebHome]].
7
8 {{image reference="export-types-admins.png" size="large" alt="The Export modal of a Page, showing the XAR entry that only administrators are offered"/}}
9
10 The remaining formats are produced by a service that has to be configured first, and a format whose service is missing is not offered to users at all:
11
12 * ##PDF## always works, but [[configuring the PDF export>>doc:documentation.xs.admin.exports.configure-pdf-export.WebHome]] decides which templates users may choose from and, through the [[PDF generator>>doc:documentation.xs.admin.exports.configure-pdf-export.pdf-generator-configuration.WebHome]], whether the file is produced by the reader's own browser or server-side by a headless Chrome.
13 * ##ODT## and ##RTF## need an office server, either by [[connecting to an internal Office Server>>doc:documentation.xs.admin.exports.office-server-properties.connect-internal-office-server.WebHome]] or by [[connecting to an external Office Server>>doc:documentation.xs.admin.exports.office-server-properties.connect-external-office-server.WebHome]]. Until one of them answers, [[exporting in ODT or RTF>>doc:documentation.xs.user.exports.export-page.export-odt-rtf.WebHome]] is unavailable.

Get Connected