How can in influence the size of an image when exported to pdf?

No matter what I do the images on my Confluence pages are reduced in size when I export the to PDF. The size attribute seems to affect the way the image appears on the page, but when I export to PDF there is an annoying reduction in image size.

Is there a way (macro or otherwise) of gaining some control over the image size when exporting to PDF?

2 answers

Hi Scott,

I just stumbled onto the same problem. I've got a quite big image in a table and PDF export always shrinks the image although there's enough space.
The printed page than has got a big right margin that could have been used by the image, but isn't.

Isn't there anybody out there who can help? @Steffen Heller, perhaps?

Cheers,
Kirstin

I again also stumbled upon this, thought there had been some workaround somewhere but can't remember/retrace/whatever.

Are we talking about images that are supposed to be 100% page width but do in fact only cover about 80% of the page width?

So, mein question would be:
How do I force an image to show with 100% page width?

Tried this, but nothing seems to work:

div.landscape {
page: landscape;
width: 148%;
}

@page landscape {
size: A4 landscape;
}

/* for tables */
.wiki-content .landscape table.confluenceTable {
width: 100%;
table-layout: auto;
}

/* for images */
.wiki-content .landscape p img, .wiki-content .landscape h1 img, .wiki-content .landscape img {
width: 27cm;
-fs-fit-images-to-width: 7.75in;
}

 

I have a similar problem.  I have two images in different cells of the table (same column).  All is fine on the screen where i have the following images:

Empty box image (like a checkbox):  checkbox.png

Signature box (in last row of table only: box.png

 

Everything appears fine on the page, but when exported to PDF, the squares seen above are enlarged to the width of the rectangles.   Something is wrong here.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

830 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you