Exporting to PDF from Confluence 6.7.2
Asked by Magnus Magnusson:

I have a problem after upgrading to Confluence from 6.4.3 with exporting Spaces og pages with attactedment (PNG \& JPG images)to PDF. Images will come as random order in PDF file, or 1 out of 3 images are as 1 images for those different three.

This is working 100% using export to Word !

Has anyone been in this situation?

![pdf-export-sample-.JPG](/t5/image/serverpage/image-id/18493i68DFA68566EE5E99/image-size/large?v=v2&px=999 "pdf-export-sample-.JPG")![example-orginal-before-export.JPG](/t5/image/serverpage/image-id/18494i6D2AB50CAB295687/image-size/large?v=v2&px=999 "example-orginal-before-export.JPG")


Answers:
author: Minh Tran
body: [@Magnus Magnusson](/t5/user/viewprofilepage/user-id/955932) can you please provide the steps to reproduce? What images in img1 / img2 / img3 are png and jpg?

Just for your information, we have fixed an issue related to png image export to pdf in Confluence 6.8.0

It may fix your problem.

comments: author: Magnus Magnusson
body: This test case has .PNG images, we allso tested in .JPG with the same results.

To reproduce: Save different images (PNG or JPG) on Confluence page. Select export to PDF button. Results should be random image order will appear in PDF output.

Will be correct in export to Word.

This fixed issue, is it Confserver-52060 ? I cant find issue in 6.8 release notes that are with Export to PDF problem.

<https://confluence.atlassian.com/doc/confluence-6-8-release-notes-946014166.html>


author: Minh Tran
body: Ok did you test with 3 png and 3 jpg images cases? Or do you mix between those extensions?

Ah Confserver-52060 fixed another problem.

I am testing 2 cases:

First one is all 3 png files ![test png random export order - Minh Tran - Bulldog 2018-04-04 23-37-09.png](https://community.atlassian.com/t5/image/serverpage/image-id/18657iFA43B2FA0ADBD415/image-size/large?v=v2&px=999 "test png random export order - Minh Tran - Bulldog 2018-04-04 23-37-09.png")

Here is the corresponding export pdf

![mtran-testpngrandomexportorder-040418-1335-4.pdf 2018-04-04 23-41-04.png](https://community.atlassian.com/t5/image/serverpage/image-id/18658i43B0A5A0D6F548B7/image-size/large?v=v2&px=999 "mtran-testpngrandomexportorder-040418-1335-4.pdf 2018-04-04 23-41-04.png")

Another case is 3 png on the top and then 3 jpg next to those.

![test png random export order - Minh Tran - Bulldog 2018-04-04 23-42-14.png](https://community.atlassian.com/t5/image/serverpage/image-id/18659i3E39B09151BEE3FA/image-size/large?v=v2&px=999 "test png random export order - Minh Tran - Bulldog 2018-04-04 23-42-14.png")

and the export pdf of that page:

![mtran-testpngrandomexportorder-040418-1338-6.pdf 2018-04-04 23-43-16.png](https://community.atlassian.com/t5/image/serverpage/image-id/18660i5F7C2270C9A205EB/image-size/large?v=v2&px=999 "mtran-testpngrandomexportorder-040418-1338-6.pdf 2018-04-04 23-43-16.png")

Those look good to me in the Confluence 6.8.0+


author: Magnus Magnusson
body: *Ok did you test with 3 png and 3 jpg images cases? Or do you mix between those extensions?* We tested 3 png and again with 3 jpg, not mixed.

You are only testing in 6.8 right ? Can you test in 6.7.2 ? So the fix is to upgrade again ?


author: Minh Tran
body: I haven't got a chance to test with 6.7.2. Probably i can try again tomorrow morning and update here


author: SDB Admin
body: Upgraded yesterday from Confluence 6.6.1 to 6.6.4 and reproduced.

No matter if images are all .png or .png \& .jpg mixed.

Seems that, sometimes, export utility applies the last image to all the images in the same paragraph/bullet list/table row.

It happens in many cases, not always, but I'm unable to identify the "logic" behind.

Hope these info are helpful.


author: Magnus Magnusson
body: Thanks. I cleared the Global PDF Style sheet and saved, then the PDF exports where fine.


author: SDB Admin
body: Global PDF Style sheet is already clear on my Confluence.  
Modified and saved: still not working...  
Cleared again and saved: still not working...

Any idea?


author: Christopher Jaksch
body: Hi [@Magnus Magnusson](/t5/user/viewprofilepage/user-id/955932)

this sounds like a weird behaviour on your Confluence application.

You should report and try to resolve this issue with Atlassian support \> <https://support.atlassian.com/confluence/>

Good luck and best wishes  
Chris (STAGIL)


Tags: export

pdf