Hey Guys...
I´m kinda new to the whole confluence thing and have the task to set a global PDF-Export Header in Confluence.
The header will contain 2 images. One should be alligned to the left, one should be alligned to the right.
I´ve tried plenty of things in HTML but was not able to get a halfway decent result till now...
Can anyone provide quick advice and tell me what the best practice on doing this is?
Last thing i tried was the following which led to the second image being alligned to the right, but in a row below the first image (because of the div of course).
I also lso tried encapsulating this into a table but then the images stick together on the left :/
Thanks in advance!
Hi Sascha, would using an app for your PDF exports also be an option? If so, we (K15t) develop Scroll PDF Exporter which allows you to customize how your exports are generated from Confluence. Within export templates that you can configure, you can define the formatting for the header and footer in your exports meaning that you could have different images both left and right aligned. If you are interested and want to learn more about the app you can check out our Help Center or alternatively, you can also evaluate the app for free from the Marketplace. Hope this information helps. Thanks, Thomas (K15t)
Hi Thomas,
by now i also came to the conclusion that a plugin would be the easy choice.
I´ll try some more things today and if this doesn´t work aswell ill suggest buying the plugin.
Thank you for your reply!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I now scrapped all of the HTML and went over to the Stylesheet....
There i added the following:
@page
{
@bottom-left
{
content: "Seite " counter(page) " von " counter(pages);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
@Top-left
{
<img src="/download/attachments/5144622/IMAGE1.png>
}
@Top-right
{
<img src="/download/attachments/5144622/IMAGE2.png>
}
}
Pagecounters work but i dont see the images....Any advice?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the first example you must use "position", not "text-align":
https://www.w3schools.com/css/css_positioning.asp
In the second example you must use "background-image", not "img":
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.