Skip to end of metadata
Go to start of metadata

When you generate PDF in default format, your PDF may not like the real confluence website - its font is too large and table is not that fancy. Below style sheet will help you to have better fancy PDF.

You can change the Stylesheet at "Administration" → "LOOK AND FEEL" → "PDF Stylesheet"

------------------------------------------
PDF LaYOUT > PDF Space Export Title Page
------------------------------------------

<div class="fsTitlePage">
<div class="fsDocTitle">Documentation for Confluence 5.0</div>
</div>
<div class="tocTitle">Contents</div>


---------------
PDF STYLESHEET
---------------

@page
{
   /* standard A4 paper size: 210mm wide by 297mm high */
   size: 210mm 297mm;
}
@page :left
{
    @top-left
    {
        content: element(header);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
    }
    @top-right-corner
    {
        content: counter(page);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 16pt;
    }
    @bottom-left
    {
        content: element(footer);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
    }
}
@page :right
{
    @top-left
    {
        content: element(header);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
    }
    @top-right-corner
    {
        content: counter(page);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 16pt;
    }
    @bottom-left
    {
        content: element(footer);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
    }
}
@page :first
{
    @top-left
    {
    }
    @top-right-corner
    {
    }
    @bottom-left
    {
    }
}

@page frontmatter 
{ 
@top-left
    {
        content: element(header);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
    }
    @top-right-corner
    {
        content: counter(page);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 16pt;
    }
    @bottom-left
    {
        content: element(footer);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
    }
}


.fsTitlePage
{
margin-left: auto;
margin-top: 150mm;
margin-right: auto;
page-break-after:always
} 

.fsDocTitle
{
 font-size: 32px;
 margin: 36px 0 24px 0;
}


div.fsFrontMatter
{
page: frontmatter;
page-break-after: always;
margin-left:auto;
margin-top:10mm;
margin-right:auto;
}


div.toc 
{
    page: frontmatter;
    page-break-after: always;
}

div.tocTitle
{   
    page: frontmatter;
     font-size: 32px;
    margin: 36px 0 24px 0;
    page-break-after: none;
}

div.toclvl0:before, div.toclvl1:before, div.toclvl2:before, div.toclvl3:before, div.toclvl4:before
{
    content:  none;
}


body,p,li,td,table,tr,.bodytext,.stepfield 
{
 font-size: 10pt;
}

.header, .footer
{
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 10pt;
        font-style: italic;
}

h1{ page-break-before: always; }