Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Title page in PDF: I see the title, but below the ToC, and numbered as 1.

Francis Vila January 29, 2018

I tried the css suggested in https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html#AdvancedPDFExportCustomizations-AddingaDynamicTitletotheTitlePage and added it in with the pdf styles.

I do get the page title, but it looks like this (title below TOC, unwanted numbering...)

confluence.png

2 answers

1 vote
Francis Vila January 29, 2018

Managed to solve the ToC above the title. I added

<h2 style="page-break-after: always;"></h2>

at the end of Space tools > Look and Feel > PDF Layout > Edit > PDF Space Export Title Page. Now looking up the numbering in ToC starting with 0.

Jennifer Gardner September 26, 2018

Hi Francis,

I'm having the exact issue so thank you for helping me :-)

Do you have a resolution for the numbering in TOC starting with 0?

 

Kind Regards

Jennifer

Jennifer Gardner September 26, 2018

Hi Francis,

I don't know if this will help, but I've found a way to remove the numbering completely.

I've given up on figuring out how to fix the TOC starting with a '0' and my page title starting with a number...

 

You simply need to add the following into your PDF Export Stylesheet:

 

div.toclvl0:before { content: ""; }

div.toclvl1:before { content: ""; }

div.toclvl2:before { content: ""; }

div.toclvl3:before { content: ""; }

div.toclvl4:before { content: ""; }

div.toclvl5:before { content: ""; }

 

Thanks

Jennifer

0 votes
Chris Held December 30, 2020

Not sure if you are still facing this issue but I eventually solved it by changing the default CCS a bit like this:

.toclvl0
{
font-size: 42px;
font-weight: bold;
margin: 5px 0 4px 0;
text-align:center;
}

.toclvl0 .tocnum
{
display: none;
}

.toclvl0 .toclead
{
display: none;
}

Now it neatly shows the first TOC level (0) above the TOC without a page number, section number or leader. :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events