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

This widget could not be displayed.

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;
}

 

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

851 views 8 13
Read article

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