How can I control image quality in a PDF export?

Jason Plumhoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

We recently generated an entire users manual for one of our products as a Confluence (v4.1) space. It looks great - until we do a PDF export. Many of the screenshot images in the export appear to have been resampled. Some of the text in the images is now unreadable. I know we can work around some of this by carefully choosing the size of our original images, narrowing the scope of the image, etc. But what I am wondering is this:

Are any settings in Confluence or in the PDF stylesheet (or anywhere else, for that matter) that we can use to modify how the images are being resized/resampled during conversion to PDF?

5 answers

1 accepted

0 votes
Answer accepted
HuseinA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2012

You might want to try tweaking this CSS bit in your PDF Stylesheet (the following are the default PDF export CSS that can be found from confluencedefaultpdf.css):

img
{
   page-break-inside: avoid;
   -fs-fit-images-to-width:6in;
}

Jason Plumhoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2012

Hi Husein,

Thanks for responding! I'll look into this ASAP. Are there any other image related parameters I might look at? I've never worked with stylesheets before, and poking around on line is hard when I don't have decent keywords to search for...

Thanks,

Jason

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2013

Follow the above link. The information is in the other thread.

0 votes
gredwhite November 15, 2013

Can you explain in details about workarounds ?

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2013

We had a lengthy discussion about image quality in PDF export at https://answers.atlassian.com/questions/93381/column-width-and-pdf-export#comment-148155

It developed quite a bit so it can be confusing. Bottomline is you need very big images on the wiki page to get good images in the PDF. Using thumbnails to make the images smaller often causes even worse results in the PDF. But there is some kind of a workaround...

0 votes
Thomas Böhmer June 13, 2013
Hi Husein, this option only changes the size of the images not the quality. Regards Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events