How to insert html table in header for exporting to PDF

Andrea Chiericati
Contributor
November 10, 2021

Hi, i need add an HTML table in the header and footer of my export to PDF since i wont to use confluence for the official Company Documentation, adding logo, company info and certification number.

This code in the header don't works:
<table>
<tr>
<td>
LOGO
</td>
<td>
COMPANY INFO
</td>
<td>
CERTIFICATION NUMBER
</td>
</tr>
</table>

 

1 answer

1 vote
Sven Schatter (K15t)
Atlassian Partner
November 10, 2021

Hi @Andrea Chiericati,

That looks like it should be working. Have you verified that this also doesn't show up for space exports? As per the official documentation:

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

If you want more flexibility customizing your PDF exports and have your customizations applied to single page exports, I highly recommend that you check out this app made by my team at K15t: Scroll PDF Exporter for Confluence

It not only makes it easier to customize your header, but it also comes with lots of other features for designing your PDF exports that will make your Company Documentation adhere to your brand much better. Here's a screenshot of what defining a header in our app looks like:

Screen+Shot+2021-10-19+at+14.53.59.png

Hope this helps! If you have any questions, let me know!

Cheers,
Sven

Andrea Chiericati
Contributor
November 11, 2021

Hi @Sven Schatter (K15t) thank you for your fast reply,

i following this guide https://support.atlassian.com/confluence-cloud/docs/advanced-pdf-export-customizations/ but this step doesn't work:

2021-11-11 09_23_40-Window.png

 

I could solve playing with background-image as below, but it is very hard to obtain a good result:

@top-center { content: "Document Title Goes Here"; /* This is the content that will appear in the header */ font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif; font-size:
8pt;
backroung-image="..."}

 

Your app it is very interesting, pricing is aligned to admin user or all cloud instance users? For sure i will test it.

 

Kr

Like Sven Schatter (K15t) likes this
Sven Schatter (K15t)
Atlassian Partner
November 11, 2021

Thanks for sharing your findings @Andrea Chiericati!

The pricing of apps always depends on the number of users in your whole instance. This is how Atlassian explains it in the Marketplace FAQ:

How do I determine my Cloud pricing?

Apps are billed based on the number of users in your Atlassian product. Confluence Cloud apps are priced based on the number of Confluence users on your instance. For example, if you have Confluence Cloud (25 users), you pay the 25-user price for apps.

The pricing structure for cloud apps is as follows:

  • Monthly subscriptions with up to 10 Atlassian product users are billed at a flat rate price.
  • Monthly subscriptions with more than 10 users are billed per user, starting at the first user.
  • Monthly subscriptions with more than 100 users are billed per user. The table above provides example pricing at various user levels.

Annual subscriptions may offer a discount depending on the number of users purchased.

Hope this helps! If you have any more questions let me know. :)

Cheers,
Sven

Andrea Chiericati
Contributor
November 11, 2021

Ok, thank you.

In your app is it poossibile to create PDF with editable fields?

Kr

Andrea

Sven Schatter (K15t)
Atlassian Partner
November 11, 2021

Hi @Andrea Chiericati,

Unfortunately, that is not possible yet. We are however aware of this feature request and are tracking it here: https://k15t.jira.com/browse/EXP-3036

Cheers,
Sven

Andrea Chiericati
Contributor
November 11, 2021

Perfect, thank you

Like Sven Schatter (K15t) likes this
Andrea Chiericati
Contributor
November 23, 2021

Hi @Sven Schatter (K15t) ,

i'm trying your app.

Is it possible to associate a template only to a specific Spaces?
Not "global"

Kr
Andrea

Sven Schatter (K15t)
Atlassian Partner
November 23, 2021

Hi @Andrea Chiericati,

Yes, that should be possible! Have you tried doing it the way suggested in the official documentation? You should be able to find that functionality in your space via: Space tools > Apps > Scroll PDF Exporter

Cheers,
Sven

Andrea Chiericati
Contributor
November 23, 2021

Ok perfect, i must create the new template inside Site tools, not in Confluence tools.

very helpful

Could be an improvment change in edit option of the templates the related visibility/association

 

Kr

Andrea

Like Sven Schatter (K15t) likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events