how to get the Page Title in the PDF Export Title Page ?

How can I get the Page Title to show up in the PDF Export Title Page please.

1 answer

1 accepted

1 vote

Have you tried the code here:

http://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF#CustomisingExportstoPDF-TitlePage

If it's not working, post back with what theme you're using, and what code you've modified (either html or css).

Thanks for the reply. I am not trying to get an image into my PDF export title page. I'm trying to get the text from my Page name into the pdf export. Thanks for any help.

I thought it was this part:

fsTitle
{
font-size: 42px;
font-weight: bold;
margin: 72px 0 4px 0;
text-align:center;
}

Are you using the default theme?

Normally, if you export the page, the title is there. For example, try the PDF export for http://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF. The title is there by default. Do you have a different theme, or customization to the PDF export already?

Normally the title prints on every page I believe. We turned that off with ".pagetitle h1 { display: none; } " but do need the Page Title on the first PDF title page.

Ok. Take another look at the .fsTitle style. Try adding:

display:block !important;

to it. Maybe it needs to override your display:none from pagetitle.

The title page is still not printed, my only pdf export css is:

.pagetitle h1 { display: none; }

fsTitle

{

font-size: 42px;

font-weight: bold;

margin: 72px 0 4px 0;

text-align:center;

display:block !important;

}

Sorry - the info about display:block was the wrong guess.

The HTML you enter for a page title (under 'Page Layouts) is for exporting a space only. Try this instead, or something similar:

  1. Remove everything from PDF Layout (or, only what you want to have in a space PDF export)
  2. Enter something similar to this in the PDF stylesheet:
.pagetitle h1 { 
font-size: 36px !important;
margin-left: 250px !important;
padding-top: 300px !important;
page-break-after:always; 
}

That's just an example - you'll want to play with the margins a bit, but it should hopefully get you past this hurdle.

Thank you Jeremy. That fixed me up ! Have a great day.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

901 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you