Forums

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

Confluence PDF Printing CSS Issues

Jonathan Smith
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.
May 29, 2019

Hello all,

  We are currently trying to find a way to include page title, source, date, and page numbers on our PDF exports while keeping the layout of the page.

  • Note: We treat Confluence as a sudo-company portal vs just a wiki.
  • Confluence server 6.14.3

There are a few blockers from achieving the expected print design with just CSS styling.


1. Header & Footer-left: We cannot reuse the page title in header/footer keeping it as the title on the first page at the same time. Here is an open ticket with Atlassian Community explaining the same issue - https://community.atlassian.com/t5/Confluence-questions/PDF-export-ADD-page-title-to-header-footer/qaq-p/792218
We would either need to set up a dummy element via a macro that would hold title and will be used to populate footer via CSS or install a third part plugin.

2. Footer-center: CSS cannot access dynamic values or variables like date unless again it is available in a place holder element in the page itself. Here is a suggestion from an Atlassian team member to use a plugin instead to include date - https://community.atlassian.com/t5/Confluence-questions/How-do-i-get-the-PDF-Export-to-include-the-current-date/qaq-p/597378
Here is one with a marco implementation - https://community.atlassian.com/t5/Questions/Current-date-macro-in-confluence/qaq-p/239187

Issues with the proposed solutions:
1. Creating a macro and making sure it is on every template/blueprint would be a huge effort just to include requested content (title, date, etc).
2. We evaluated Scroll PDF Exporter, however the algorithm changes the look of the content when printing. Like ctrl+p in chrome, we are looking to display the content like that, but include desired headers and footers.

Are there any other solutions out there? We are old school here and require printed pages "as is" but with important headers and footers.

Thanks,

Jonathan

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events