Hello,

sorry for picking this old thread.

I compiled fop-transcoder-allinone.jar via 'ant transcoder-pkg' and replaced
pdf-transcoder.jar. Unfortunately I get an error with the new lib:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/image/loader/ImageContext

xmlgraphics seems to be necessary for the new version. I downloaded and
added the lib, also to the manifest of batik-rasterizer.jar. This leads to:

Converting 4750155394.svg to
C:\Users\GIS\AppData\Local\Temp\GeolDB\4750155394.pdf ... Exception in
thread "main" java.lang.ExceptionInInitializerError
        at
org.apache.fop.svg.AbstractFOPTranscoder.setupImageInfrastructure(AbstractFO
PTranscoder.java:256)
        at
org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:123)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTrans
coder.java:142)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTrans
coder.java:156)
        at
org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:10
01)
        at
org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
        at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
        at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.no-sour
ce-reuse read)
        at java.security.AccessControlContext.checkPermission(Unknown
Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.<clinit
>(AbstractImageSessionContext.java:62)
        ... 8 more

Is the AccessControlException the problem and how could I resolve it?

Cheers

-----Ursprüngliche Nachricht-----
Von: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
Gesendet: Dienstag, 30. August 2011 13:15
An: batik-users@xmlgraphics.apache.org
Betreff: Re: Placing SVG Text into PDF

Oops, you're right. I looked in the wrong FOP 1.0 extract. So, yes, you'll
have to build [1] it from the FOP 1.0 source distribution. Just run "ant
package". If you're calling batik-rasterizer.jar (using java -jar...), then
it might be necessary to rename fop-transcoder-allinone.jar to
pdf-transcoder.jar so it'll be picked up.
The filenames are hard-coded in the manifest.

[1] http://xmlgraphics.apache.org/fop/1.0/compiling.html




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to