Issue Details (XML | Word | Printable)

Key: CONF-3609
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andrew Ostler
Votes: 1
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Confluence

PDF export with png image cannot be read with Adobe Reader

Created: 21/Jul/05 05:10 AM   Updated: 11/Sep/08 08:49 PM
Component/s: Export Page / Space
Affects Version/s: 1.4.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. PDF File SANDBOX-20,549-20050728-01_15_57.pdf (15 kB)
2. PDF File sceeatg-20050722-01_25_01.pdf (21 kB)

Image Attachments:

1. exampleimage.png
(32 kB)

2. mat_create.png
(13 kB)
Issue Links:
Duplicate
 
Reference
 

Participants: Andrew Ostler, Daniel Ostermeier, David Soul [Atlassian], Dzmitry Zhemchuhou and Jens Schumacher [Atlassian]
Since last comment: 2 years, 5 weeks, 4 days ago
Support reference count: 2
Labels:


 Description  « Hide
Often when I use 'export space' to export a large part of my space, the generated pdf file does not load in Adobe Reader (6 or 7, Windows XP).

The error message is: "There was an error processing a page. There was a problem reading this document (109).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Daniel Ostermeier added a comment - 21/Jul/05 08:12 PM
Hi Andrew,

It sounds like there is some content being converted into PDF that is not valid on acrobat 6 or 7. It would be great if you could help us investigate this issue a little bit by,

a) generate the pdf that failing, and rather than opening it from within your browser, save it to disk and then open it. I have seen reports that mention this error in the same sentence as problems with the IE pdf plugin.
b) can you try to isolate the page/pages that are causing the problem. ie, when you find a PDF file that is generating this error, remove some of the pages until you have narrowed down the offending page(s). If possible, can you send us the wiki text of those pages. This will allow us to isolate wiki markup that is responsible for causing the invalid PDF content. Alternatively, if you dont have time for this, is it possible to send us the space backup for a space that is consistently generating this error?

Regards,
-Daniel


Andrew Ostler added a comment - 22/Jul/05 03:27 AM
Apparently this is due to png images with an unusual dpi setting (72.009 dpi).

Please see the attached png image and pdf.

thanks,
os.


Jens Schumacher [Atlassian] added a comment - 27/Jul/05 02:59 AM
Andrew,

we have tested a single page pdf export with the image you attached to this issue and it was no problem to open the resulting pdf in Acrobat Reader 6.0 on Windows XP. Have you tried a single page export to see if the page with the image included is failing to be opened in Acrobat?

Would you be able to provide a space backup so we could try to reproduce the problem locally?

Where did you get the idea that the image is the root of the problem?

Cheers,
Jens


Andrew Ostler added a comment - 27/Jul/05 03:58 AM
Hi,

I must admit to not being able to find the button to export a single page - where should it be?

But I've done an 'export space', restricting the export to that single page, and it won't load when exported.

If I load the image into an editor and resave with a different DPI, then upload to confluence and export exactly the same page, then the pdf works fine.

cheers,
os.


Jens Schumacher [Atlassian] added a comment - 27/Jul/05 06:50 PM
Hi Andrew,

You can find a little pdf icon at the top right of every page underneath the search button. This allows you to export the page to pdf with one click.
However, I have tried to make a single page export via the space export and were also able to view the pdf in Acrobat Reader 6.0.

Can you attach the created pdf document so I can try to open it over here?

Cheers,
Jens


Andrew Ostler added a comment - 28/Jul/05 03:16 AM
single page export.

Dzmitry Zhemchuhou added a comment - 29/Jul/05 08:13 PM
This is an excerpt from catalina.out:

[INFO] JAI support was not installed (read: not present at build time). Trying to use Jimi instead
[ERROR] Error in XObject : Error while loading image file://var/lib/confluence/temp/export_07292005_175825/mat_create.png : class ja
va.lang.Exception - Image error
[INFO] Parsing of document complete, stopping renderer


Jens Schumacher [Atlassian] added a comment - 31/Jul/05 08:29 PM
Thanks for the excerpt of your logs.

Some of our users have found that finding the file confluence/WEB-INF/lib/JimiProClasses.zip, renaming it to JimiProClasses.jar and then restarting Confluence actually makes the export work successfully.

However I'm quite sure JimiProClasses.zip was renamed to .jar in 1.4.1 and therefore this shouldn't be the problem. Please check it anyway whether there is a zip file or a jar.

I couldn't find any bug report regarding PNG images with a specific resolution, but the problem might well be related to Jimi since it seems to have problems loading the image. Alternatively you could install JAI [1] to see if this specific PNG format is supported by the Java Advanced Imaging API.

Hope that helps,

Cheers,
Jens

[1] Java Advanced Imaging API (http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html)


Dzmitry Zhemchuhou added a comment - 01/Aug/05 12:13 PM
Installing JAI helped. I had to restart Confluence, though.

It is worth to mention dependency on JAI in Confluence documentation, since FOP information message is confusing. Version 0.20.5 does have JAI support, according to their website.

Andrew: this will be available on our main site tomorrow LA time


Jens Schumacher [Atlassian] added a comment - 01/Aug/05 06:31 PM
Since it only seems to fail with specific png files, it is not really a dependency. However, we will add it to our documentation to make customers aware of the fact that the JAI library might be required.

Thanks for letting us know.

Cheers,
Jens


David Soul [Atlassian] added a comment - 21/Aug/06 01:28 AM
2.2.8 is generating corrupt PDF exports for pages containing PNG images. No log errors are thrown by Confluence but the PDF file generates error 109 when opened in Acrobat Reader. An example PDF and problem PNG is attached (71 DPI with 32 bit colour). This error is blocking the CAC User Guide PDF.

David Soul [Atlassian] added a comment - 24/Oct/06 01:24 AM
This issue appears only to occur on instances with JIMI library, so apparently is related to either JIMI library bug in PNG support, or lack of support for certain PNGs. Error has been encountered on CAC, which uses JIMI library but not JAI. Further testing is needed.

If encountered, the current workaround is to install the JAI from http://java.sun.com/products/java-media/jai/

David Soul


David Soul [Atlassian] added a comment - 24/Oct/06 01:25 AM
Example problem PNG attached

David Soul [Atlassian] added a comment - 24/Oct/06 08:09 PM
Could not replicate with:
  • JRocket JVM under Standalone or Tomcat
  • JIMI library removed

May need to replicate as completely as possible. Possible ideas

  • Ask Contegix to setup a new Conf standalone in their env
  • Setup same everything locally, eg Resin, PostgreSQL, JRocket.

Dave Soul