From version 195.1
edited by Oana Florea
on 2019/11/22
To version 196.1
edited by Oana Florea
on 2019/11/22
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -464,7 +464,7 @@
464 464  
465 465  Then, create the wiki page for which your want to customize the PDF export (e.g. XWiki.PDFTemplate) and add a "XWiki.PDFClass" object to it.
466 466  
467 -Supposing your wiki page contains a table, you have to edit it in "Wiki" mode and add a style parameter as shown below:
467 +Supposing your wiki page //Sandbox.TestPage1// contains a table, you have to edit it in "Wiki" mode and add a style parameter as shown below:
468 468  
469 469  {{code}}
470 470  (% class="mytable" %)
... ... @@ -472,14 +472,16 @@
472 472  | data|data
473 473  {{/code}}
474 474  
475 -Next, edit the page in "Objects" mode and write your own CSS rules in the "style" property:
475 +Next, edit the template page (e.g. XWiki.PDFTemplate) in "Objects" mode and write your own CSS rules in the "style" property:
476 476  
477 477  {{image reference="CreatePDFTemplate.png"/}}
478 478  
479 -Because no template is used by default, you need to specify the ##pdftemplate## parameter in the URL in order to use your own template: //{{{http://yourserver/xwiki/bin/export/XWiki/PDFTemplate?format=pdf&pdftemplate=XWiki.PDFTemplate}}}//.
479 +Because no template is used by default, you need to specify the ##pdftemplate## parameter in the URL in order to use your own template: //{{{http://yourserver/xwiki/bin/export/Sandbox/TestPage1/?format=pdf&pdftemplate=XWiki.PDFTemplate}}}//.
480 480  
481 481  {{image reference="CustomizedPDF.png"/}}
482 482  
483 +**Tip**: download the [[PDF class>>attach:XWiki.PDFClass.xar]] and [[PDF template >>attach:XWiki.PDFTemplate.xar]]for this example.
484 +
483 483  {{info}}
484 484  Even though RTF export is expected to work the same way, there are still some isues to be solved affecting how CSS properties control the final layout.
485 485  {{/info}}

Get Connected