PDF layouts won't work Edited

Hello,

 

I was trying to set up a footer for our pdf export. And for testing purposes I used very simple HTML and CSS codes, but they won't show up in the exported pdf file.  I used this documentation already to set it up: 

https://confluence.atlassian.com/conf56/exporting-confluence-pages-and-spaces-to-pdf-658736967.html 

https://confluence.atlassian.com/conf56/advanced-pdf-export-customisations-658736969.html 

https://confluence.atlassian.com/conf56/customising-exports-to-pdf-658736968.html 

I also tried it on our first confluence instance and I had the same result. Nothing showed up in the exported file.

Thank you in advance,

 

Ingo Herbrich

 

1 answer

1 votes
Ann Worley Atlassian Team Sep 14, 2017

I will be happy to try your CSS and HTML on my test instance to see if it works for me. Would you mind posting it? There is a code block option under the Formats menu here on the forum.

I noticed you linked documentation for Confluence 5.6. Is that your version? If not, please let me know the version of Confluence you are running.

We are currently running version 6.3.3. I used simple HTML code like <p>Hello</p> for testing which didn't work out. But I also prepared a HTML which we want to use later, but it won't show up either. I also tried to set it up globally and space wide but nothing worked out. This is the code we would like to use later:

<p><img style="width: 270px; height: 91px; float: left;" src="test.png" /></p>
<div class="fusion-column col-lg-3 col-md-3 col-sm-3">
<div id="text_icl-7" class="fusion-footer-widget-column widget widget_text_icl">
<h4 class="widget-title" style="text-align: right;">&nbsp;</h4>
<h4 class="widget-title" style="text-align: right;">&nbsp;</h4>
<h4 class="widget-title" style="text-align: right;">&nbsp;&nbsp;<span style="font-family: calibri;"><span style="font-size: small;">Test</span></span></h4>
</div>
</div>

Update: When I export via Space Tools -> Export -> PDF -> Normal Export/Custom Export the HTML code is working. But it has to work on the page itself via the "..." menu. Everything else wouldn't make any sense for us. 

Ann Worley Atlassian Team Sep 15, 2017

Thanks for the update. According to our doc, Customize Exports to PDF, it is working as expected:

  • PDF customization only applies to space exports (not single page exports via Tools > Export to PDF)

I was not surprised to see a suggestion ticket open for this:

Provide ability to customize single-page PDF and Word exports

I noticed there aren't any comments, which did surprise me. I can see why you wouldn't want to grant access to space tools to everyone who needs to export a page to pdf.

If you vote or comment on the suggestion, you will be added to notifications so you will know when there is activity on the issue.

In the meantime, please check out this free add-on and let me know if it works for your use case: PDF Macros for Confluence

Suggest an answer

Log in or Register to answer