It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

John Bercik Jan 11, 2012

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

1 answer

1 accepted

1 vote
Answer accepted
Jeremy Largman Atlassian Team Jan 12, 2012

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).

John Bercik Jan 12, 2012

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.

Jeremy Largman Atlassian Team Jan 12, 2012

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?

John Bercik Jan 15, 2012

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.

Jeremy Largman Atlassian Team Jan 15, 2012

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.

John Bercik Jan 15, 2012

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;

}

Jeremy Largman Atlassian Team Jan 15, 2012

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.

John Bercik Jan 15, 2012

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

Julie Chamberlain Mar 04, 2019

In a similar vein, is it possible to get the Version number of the page to show up on the title page of an exported PDF?

Nils Bier (K15t) Mar 04, 2019

Hi @Julie Chamberlain in our Scroll PDF Exporter we have implemented a placeholder functionality, allowing you to refer to specific data from Confluence in your exported file.

One of the placeholders that's available is the page revision, which could for example be used on your header or footer, and will then display the page revision number. You can find further information about all available placeholders in our documentation.

Please feel free to trial Scroll PDF Exporter via the Atlassian Marketplace and let us know via support@k15t.com if you have any questions.

Best,
Nils

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,538 views 8 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you