Why would it be useful to not apply the PDF style sheet to single page exports via TOOLS -> EXPORT to PDF ?

This question is in reference to Atlassian Documentation: Stylesheet does not apply when exporting a page to PDF

I tend to see this a s a bug, not a feature.

2 answers

Hello Ralph,

 

I think some Confluence documentation is wrong at this point: The PDF Export Stylesheet applies to single page export.

Wrong is: https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html

Please have a look at: https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html#AdvancedPDFExportCustomizations-AddingHeadersandFooterstoSinglePageExports this page says yes. And that's true. 

Perhaps you try sth. like this in the PDF Export stylesheet:

/* Page title */
div.wiki-content h1{
	color: green;
}
/* H1 on page => H2 on page export */
div.wiki-content h2:before{
	content:"XXX ";
}

 

Regards!

 

Matze

Matthias, thank you for the quick response.

Maybe I should mention that we use the cloud version, not the on-premise installation.

In our environment, I can confirm that the simple export of a page via TOOLS -> EXPORT TO PDF does not make use of any pdf  generation customization. I tried it with pretty simple things like a footer line with fixed text or a simple picture as a header. Some tests without CSS, some with simple CSS like setting page margins. 

Absolutely no customization is used when I just export from the page.

So for me, https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html describes the behavior of our Confluence installation absolutely correctly.

Ralph

I've to read labels next time wink
Sorry, no usefull cloud experience from my side.
Never guest, there are so much and illogical differences.
Matthias 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

251 views 11 10
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