From version < 15.1 >
edited by Silvia Macovei
on 2009/10/15
To version < 16.1 >
edited by Silvia Macovei
on 2009/10/15
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,13 +2,22 @@
1 -= Exports =
2 2  
3 -XWiki offers the ability to export a single wiki page or a set of wiki pages into several formats:
2 +(% class="floatinginfobox" %)(((
3 +**Contents**
4 4  
5 -{{toc start=2 depth=6 numbered=false scope=page /}}
5 +{{toc start=2 depth=3 numbered=false scope=page /}}
6 +)))
6 6  
7 -To perform a page export simply go to the page, select the "Print" menu (in the Albatross/Toucan skins - if you use another skin it may be located somewhere else) and select the type of export you wish to perform as shown in the following screenshot.
8 += Exports =
8 8  
10 +XWiki offers the ability to export a single wiki page or a set of wiki pages into several formats. To perform a page export simply go to the page, select the "Print" menu (in the Albatross/Toucan skins) and select the type of export you wish to perform as shown in the following screenshot:
11 +
9 9  image:export.png
13 +// "Print" as it appears using the Toucan Skin //
10 10  
15 +If you are using the Colibri skin to perform a page export go to the page, click on the "Export" menu and select the type of export you wish to perform as you can see in the following screenshot:
16 +
17 +image:ExportColibri.PNG
18 +// "Export" as it appears using the Colibri Skin //
19 +
11 11  {{warning}}Right now we don't have any user interface for exporting a set of wiki pages. This is a [[work in progress>>http://jira.xwiki.org/jira/browse/XWIKI-1289]]. However it's possible to export a set of pages by following the instructions below for each export format.{{/warning}}
12 12  
13 13  == PDF Export ==

Exports

XWiki offers the ability to export a single wiki page or a set of wiki pages into several formats:

To perform a page export simply go to the page, select the "Print" menu (in the Albatross/Toucan skins - if you use another skin it may be located somewhere else) and select the type of export you wish to perform as shown in the following screenshot.

XWiki offers the ability to export a single wiki page or a set of wiki pages into several formats. To perform a page export simply go to the page, select the "Print" menu (in the Albatross/Toucan skins) and select the type of export you wish to perform as shown in the following screenshot:

export.png

export.png
 "Print" as it appears using the Toucan Skin 

If you are using the Colibri skin to perform a page export go to the page, click on the "Export" menu and select the type of export you wish to perform as you can see in the following screenshot:

ExportColibri.PNG
 "Export" as it appears using the Colibri Skin 

Right now we don't have any user interface for exporting a set of wiki pages. This is a work in progress. However it's possible to export a set of pages by following the instructions below for each export format.

PDF Export

To export a page as PDF use the action menu as explained above or use the following type of URL:

http://server/xwiki/bin/export/Spave/Page?format=pdf

In addition the following URL parameters can be added to refine what should be exported:

  • pages: there can be several such parameters, each representing a page to export. For example: &pages=Main.WebHome&pages=Blog.WebHome.
  • includechilds: the value is a number specifying the depth of children pages to include in the PDF export. For example &includechilds=2 will include all children pages of the page to export, all its children (i.e. pages which have the page as its parent) and all the children's children.
  • includelinks: the value is a number specifying the depth of linked pages to include in the PDF export. For example &includelinks=2 will include all pages linked from the page to export and the links in the linked pages.
  • pagebreaks: if the value is set to 1 then a page break is inserted between all exported pages.
  • comments: if set to 1 then also export the comments.
  • attachments: if set to 1 then also export the attachments (only if they are images).

RTF Export

The RTF export works exactly in the same manner as the PDF export.

XAR Export

The XAR export allows exporting pages in the internal XML format used by XWiki. This is the format that you can use to Import/Export pages and applications into/from XWiki instances.

To export a page as a XAR use the action menu as explained above or use the following type of URL:

http://server/xwiki/bin/export/Spave/Page?format=xar

In addition the following URL parameters can be added to refine what should be exported:

  • pages: there can be several such parameters, each representing a page to export. For example: &pages=Main.WebHome&pages=Blog.WebHome.
  • history: if defined then also export the page's history. Example: &history=true
  • backup: if defined then the XWiki document author of each page remains the same as the one exported when reimporting into an XWiki instance.
  • author: if defined, specifies the author's name in the XAR export which can later be viewed when reimporting into an XWiki instance.
  • description: if defined, gives a description added to the XAR export which can later be viewed when reimporting into an XWiki instance.
  • license: if defined, specifies the license to the XAR export which can later be viewed when reimporting into an XWiki instance.
  • version: if defined, specifies the version of the export to the XAR.

HTML Export

The HTML export allows exporting wiki pages as static HTML pages independent from the XWiki engine. All pages are exported in view mode. That way you can export a whole space containing documentation and access it on your computer without any web server. The export is done with the current skin.

To export a page as HTML use the action menu as explained above or use the following type of URL:

http://server/xwiki/bin/export/Space/Page?format=html

In addition the following URL parameters can be added to refine what should be exported: 

  • name: the name of the generated Zip file.
  • description: the comment in the generated Zip file.
  • pages: there can be several such parameters, each representing a pattern of pages to export. Here is the format of an export pattern: wikinamepattern:pageFullNamePattern

Some examples : 

  • Exports the current page from the current wiki:

http://server/xwiki/bin/export/Space/Page?format=html 

  • Exports the current page from the current wiki in packagename.zip:
http://server/xwiki/bin/export/Space/Page?format=html&name=packagename
  • Exports all the pages from the Space space as well as the Space2.Page page from the current wiki:

http://server/xwiki/bin/export/Space/Page?format=html&pages=Space.%25&pages=Space2.Page 

  • Exports all the pages from the Space space located in the wiki2 subwiki:
http://server/xwiki/bin/export/Space/Page?format=html&pages=wiki2:Space.%25
  • Exports all the pages from all wikis/subwikis:
http://server/xwiki/bin/export/Space/Page?format=html&pages=.*:%25

Get Connected