Forums

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

image for single page pdf export

Confluence Cloud Admin - Reliste
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 25, 2019

Hi togehter,

yes there are some other threads about this topic, but nothing is really satisfying.

By inserting this into the main CSS PDF template:

 

@pagetTeng
{
background-image: url('/download/attachments/xxxxx/xxxxx.jpg');
background-repeat: no-repeat;
background-position: top right;
}

 

....It works, but the image output quality on the PDF is not quite good, esp. if you use text within. Going bigger than 55px in height will result in text collision and even give the header more space by using margin(etc.) does not effect the quality of the used image.

 

Any suggestions ?

Thank you.

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 25, 2019

Jochen,

What will be the function of the image in your PDF file? Do you intend to use it as a watermark, for example?

If you were to host the image elsewhere, instead of grabbing from a Confluence attachment, does the same happen with the quality? 

Could you show us an example of how the image looks vs how you expect it to look (i.e. the original file)? 

Thank you for your help.

Regards,

Shannon

Confluence Cloud Admin - Reliste
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 25, 2019

The purpose of the image is to export var. documents as PDF with our company-header (like we have on our stationery).

As far as I can see, the main problem is the reslolution, because it seems that only 96dpi is used, so i can only use a pixture around 800px wide. 

Higher quality images like normal DIN A4 paper by 600dpi are around 5000px wide, but will be cut off and not fitted.

Like Zak Laughton likes this
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 1, 2019

Jochen,

Thank you for letting me know that.

About my other questions - were you able to confirm if you host the image elsewhere, does it help? What about the examples of how it looks currently vs what's expected? 

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events