Hi !
I'm using FopTrunk version and I have a problem with external graphics.
If try to print an image to PDF from filesystem, works OK.
For example, this works:
<fo:external-graphic src="C:\FOPTrunk\examples\fo\graphics\fop.jpg"/>
This error is printed when I try to print image from via http:
Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection(Unknown Source)
at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
I tried several notations:
<fo:external-graphic src="url('http://www.apache.org/images/asf_logo_wide.gif')"/>
<fo:external-graphic src="url(http://www.apache.org/images/asf_logo_wide.gif)"/>
<fo:external-graphic src="http://www.apache.org/images/asf_logo_wide.gif"/>
<fo:external-graphic src="'http://www.apache.org/images/asf_logo_wide.gif'"/>
I did not try my sources with BETA version, but in fop 0.20.5 same code works fine (no error retrieving image).
Anyone has any idea what I'm doing wrong ?
Thank you,
Jelka
- fop Trunk - problems with <fo:external-graphic> when... jelka . kosir
- Re: fop Trunk - problems with <fo:external-graphic... Jeremias Maerki
- Re: fop Trunk - problems with <fo:external-gra... jelka . kosir