Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

images with 100% width in PDF export


I just witnessed a strange behaviour.

I have a big image in my wiki page and for the PDF export I want it to fill 100% of the text area (text area = that width that can be filled with text, not the same as full width of the page).

But whatever I try, the image is too small and ends at about 4cm before the right margin of the PDF.

I included ridiculously big images with 3000px width, changed the image width in the source code, set the image width in the PDF to 100% (as described at Expanding embedded images on PDF exports?) and then erased everything I had in my PDF stylesheet but nothing changes.

Is there some kind of limit that can not be extended because that is how it seems?


4 answers

1 accepted

This is a known issue. See

The workaround in the global PDF Stylesheet worked for me (See comments):

{ -fs-fit-images-to-width: 100% !important; }

Thanks a lot, Jobin. Perfect answer for me.

There is a price for everything in life !

I just found out that now that I have included the code from above I have created a new problem:
==> (Some) images within table cells disappear when the page is exported to PDF.

It is all a bit complicated:

  1. When I leave my PDF stylesheet untouched and just comment out that code the images reappear
  2. But I have also had test runs where I changed 500 other things, left that code in and images would also show
  3. For a while I was also puzzled because independent from the above some images showed and others didn't. Then I found out: Images that do not show are only those whose size was NOT changed. Big images that were minimised to e.g. 300px always show.

In the end it seems to come down to some new fancy workarounds:

  • I leave everything as it is for pages with full size images or with resized images in tables
  • I comment out the 100% code for pages with unresized images in tables
  • If none of the above works I do a "fake resize", that is, I click the image and change its size, then I open firebug, go to the page's source code, search for the image's width and change it back to its original value.


PS: I am aware of that bug report at What it describes is similiar but not exactly the same.

Did you mean to resize image after PDF processing? Do I need another 3rd party toolits to help with it? Any suggestion will be appreciated. Thanks in advance.




Best regards,



Tags: resize image

No, I was talking about something else.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

177 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you