The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I've been assigned to create custom formatting for exporting to PDF. There are a lot of attributes that can be customized, as is outlined in the Atlassian documentation. As a newbie to Confluence and CSS/HTML, I'm a bit overwhelmed by the possibilities.
Since there is so much that can be done, I'm curious to see how others have customized their PDF formatting.
What have you customized for your instance's PDF format? If you haven't customized anything yet, what are some things you'd like to have customized?
Do you include this macro in templates so users don't have to add it every time they want it? Or is it not needed that often?
In our case, it's the users adding it themselves when needed. It's not needed that often as usually it would be to export a page and send it to someone who doesn't have access to our wiki which is hosted locally.
It's nothing fancy :
## Macro title: Export PDF in landscape
## Macro has a body: N
## Output: Selected output option
##
## by: Julien Nicolas de Verteuil
## @Param Landscape:title=Export in "Landscape"|type=boolean
## @Param MaxWidth:title=Max Width|type=string|desc=Input the max width (pixel or percent, i.e.: 100px or 15%).|required=false
#if($paramLandscape == "true")
<style>
@Bonifacp{
size: 297mm 210mm;
}
</style>
#end
#if ($paramMaxWidth)
<style>
td {
max-width: $paramMaxWidth;
}
</style>
#end
Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋♀️ ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events