xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward McMasters <edward_mcmast...@yahoo.com>
Subject generating data url external-graphic in PDF
Date Tue, 07 Feb 2006 13:46:40 GMT
I have an application that needs to generate images in a PDF using a base64 string using the
<fo:external-graphic src="url('data:image/gif;base64,R0lG . . .  format in my XSL stylesheet.
 I have tried to use the technique referenced in this forum at (http://marc.theaimsgroup.com/?l=fop-user&m=110875657902117&w=2)
of setting the java.protocol.handler.pkgs property to "org.apache.fop.util.protocols" and
adding in the classes Handler and RFC2397URLConnection to the package org.apache.fop.util.protocols.data
but when I generate my PDF the image does not get created and (based on System.out.println)
the classes in org.apache.fop.util.protocols.data do not get used.
  I think that I must be missing something in my implementation.  Note that as a test I overwrote
other classes in org.apache.fop (eg. org.apache.fop.apps.Driver) and these classes did get
referenced.  I was also able to use my XSL in another application that I tried to copy (that
another developer wrote using the same technique above) to generate the image and my application
has not trouble generating images using src=file.
  I am using FOP version 0.20.5, as is the application I tried to clone.  Guessing that perhaps
fop or another library (batik, etc) was out of sync, I copied all of the libraries that the
other, working, application was using and still no success.

Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
View raw message