I'm trying to embed an image in PDF, the JPG and GIF formats show up great. But PNG does not. Adding JIMI to my classpath causes the FOP driver to freeze forever (without consuming any CPU). Same thing with JAI. Here's the log with nothing in the classpath:

[INFO] Using com.sun.org.apache.xerces.internal.parsers.SAXParser as SAX2 Parser

[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] JAI support was not installed (read: not present at build time). Trying to use Jimi instead [ERROR] Error while creating area : Error creating FopImage object (http://localhost/5B.png) : Jimi image library not available
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] [2]
[DEBUG] Last page-sequence produced 2 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 19336Kb
[DEBUG] Current heap size: 33489Kb
[DEBUG] Total memory used: 14152Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 2373ms
[DEBUG] Pages rendered: 2
[DEBUG] Avg render time: 1186ms/page

But now if I drop jimi-1.0.jar beside my fop.jar, here's what happens:

[INFO] Using com.sun.org.apache.xerces.internal.parsers.SAXParser as SAX2 Parser

[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] JAI support was not installed (read: not present at build time). Trying to use Jimi instead
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] [2]
[INFO] [3]
[INFO] [4]

And the PDF being written to disk is locked (in-use) and frozen just before the part where the /XObject stream would appear. Doesn't matter how long I wait, nothing happens. The weird thing is the [3] [4] part only appears with JIMI in the classpath. Now I delete jimi-1.0.jar and drop in jai_codec.jar and jai_core.jar beside fop, and I get even less in my log:

[INFO] Using com.sun.org.apache.xerces.internal.parsers.SAXParser as SAX2 Parser

[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[INFO] [2]
[INFO] [3]
[INFO] [4]

And still, it's frozen. Anyone seen this, or have an idea what might be going on? The next step for me is to just download the FOP source and muck it up with a lot more verbose logging, to figure out where it's hanging...

Thanks,

--jason


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to