Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize page breaks and other things in PDF export

Antonia Manohar November 6, 2019

Hi,

I went to "Space Settings">"Look and Feel" > "PDF Stylesheet" and tried to change things like changing when the page breaks occur and adding page numbers when I export to a PDF. I used the CSS:

h1, h2, h3 {
page-break-before: always; }
@pagetTeng
{
@bottom-center
{
content: "Page " counter(page) " of " counter(pages);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
}

Nothing I do in the PDF Stylesheet is showing up when I export a Page to a PDF. Can you tell me what I'm doing wrong and how I can adjust the PDFs of the different pages I created?

2 answers

1 vote
Tom Rough
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2019

Hi Antonia,

Did you have further formatting requirements that you needed to apply to your exported content from Confluence? If so, our app, Scroll PDF Exporter might be able to help as you will be able to define the styling for your exported content. This includes being able to define where page breaks occur in the export either through the use of our Scroll Pagebreak macro directly in Confluence, or through styles defined in an export template.

Cheers, Thomas (K15t)

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 13, 2019

Hello Antonia,

Thank you for contacting us about this. The reason your customization is not applying is because PDF customization only applies to space exports (not single page exports). This is per our documentation Customize Exports to PDF.

You can try the following workaround from Export Content to Word, PDF, HTML and XML:

  1. Choose the cog icon (), then open the Content tools tab
  2. Click Export
  3. Select PDF, then hit Next.
  4. Choose Custom Export, and select the page(s) you wish to export. 
  5. Click Export.

This will allow you to export a single page using the customizations you made for the space.

Can you try that and let me know if you have any trouble?

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events