15 messages in org.apache.xmlgraphics.batik-usersRe: Batik and memory consumption
FromSent OnAttachments
Lars Eirik RønningNov 4, 2008 4:19 am 
Jeremias MaerkiNov 4, 2008 4:31 am 
Lars Eirik RønningNov 4, 2008 4:45 am 
Lars Eirik RønningNov 4, 2008 4:52 am 
Lars Eirik RønningNov 4, 2008 7:02 am 
Jeremias MaerkiNov 4, 2008 7:15 am 
Lars Eirik RønningNov 4, 2008 12:20 pm 
Jeremias MaerkiNov 4, 2008 12:28 pm 
Lars Eirik RønningNov 4, 2008 12:39 pm 
Jeremias MaerkiNov 4, 2008 1:06 pm 
Lars Eirik RønningNov 13, 2008 9:32 am 
Jeremias MaerkiNov 13, 2008 11:03 am 
Lars Eirik RønningNov 13, 2008 12:32 pm 
Jeremias MaerkiNov 13, 2008 12:37 pm 
Lars Eirik RønningNov 13, 2008 12:45 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Batik and memory consumptionActions
From:Lars Eirik Rønning (lars@gmail.com)
Date:Nov 4, 2008 7:02:50 am
List:org.apache.xmlgraphics.batik-users

I get this when trying to run with fop0.95 in my project:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avalon/framework/configuration/DefaultConfiguration at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:172) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)

I use maven, but this does not seem to work..

We wish to use maven.Is there any easy way to find the maven 0.95 with all its dependencies?

Thanks again.

Hi. all i do is to have my svg document include the image.When i run pdftranscoder its easting lots of ram.

the version i am using at the moment is the one which is shipped with batik.. Basically i use the pdftranscoder.jar file.

I was unable to get it working when running with fop.jar Hope you are able to help me further.

Batik1.7 is the binary distro i am using.

ps.i will try what you suggested with running fop0.95

On Tue, Nov 4, 2008 at 1:31 PM, Jeremias Maerki <de@jeremias-maerki.ch>wrote:

Would you mind checking if you have a similar memory consumption if you install FOP 0.95 and run: fop -imagein myimage.svg -pdf myimage.jpg ??? I'm asking since you might be running on older code that might not efficiently process JPEG images.

I guess it also depends what you're doing with the JPEG image. If it is run through filter operations the JPEG image has to be decoded in memory. If not it should theoretically not load the JPEG file into memory but efficiently pass it into the PDF undecoded. However, if it has a color profile, that could use up some memory.

On 04.11.2008 13:19:26 Lars Eirik Rønning wrote:

Hi.When i try to render a pdf from batik using jpg images of high quality the memory consumption is extremely high. I tested this now with a 12mp image (4000*3000). In order to have this output the pdf correctly with the pdftranscoder it needs almost 600mb.

Any way of improving this?

Thanks guys, Batik rocks.