https://issues.apache.org/bugzilla/show_bug.cgi?id=46778
Summary: image not found
Product: Fop
Version: 0.95
Platform: Other
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
Abstract:
Seems to me that fop 0.95 (embedded) image handling is different to fop 0.94
(embedded) image handling.
Details:
We are using embedded fop 0.95 from the binary fop.jar in our application to
generate pdf from xml via xslt.
The xslt code looks like this:
<fo:external-graphic border-right-style="none">
<xsl:attribute name="src">
<xsl:text>url("file:///home/abc/atxRptLogo3.jpg")</xsl:text>
</xsl:attribute>
</fo:external-graphic>
In my code I do something like this:
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.setBaseURL(properties.getBaseDir("file:///");
// just to make sure
I then get the fop error message:
2009-02-25 11:28:59,037 [thread-2] ERROR org.apache.fop.fo.FONode - Image not
found: file:///home/abc/atxRptLogo3.jpg
atxRptLogo3.jpg is in /home/abc and accessible from the permissions.
Since we had no problems with a binary fop 0.94 running not embedded but
standalone I compiled the fop 0.94 with jdk 1.5 and created a fop.jar and
redeployed our application.
*** With fop 0.94 embedded the image is found and displayed!
Note: We played around with various notations of baseURL and the image url, for
example:
foUserAgent.setBaseURL(properties.getBaseDir("file:///home/abc");
and
<xsl:text>url("file://atxRptLogo3.jpg")</xsl:text>
but nothing helped
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.