I solved my problem by setting the transcoding hints for width and height and then it worked just fine.
Thanks for your reply. Matthias Reischenbacher Jeremias Maerki-2 wrote: > > The SVG doesn't use absolute units to specify the width and height of > the graphic. That way the transcoder cannot determine the intrinsic size > of the graphic. Of course, the code could do some guessing but that > could just as well be wrong. > > On 11.04.2008 22:09:11 MatthiasR wrote: >> >> Hi, >> >> I'm trying to transcode svg documents to eps files. This works very well >> for >> most of my svg files but sometimes the transcoder adds blank space on the >> right and below to the generated eps files. When this happens image width >> and height are the same (widht = height) and the eps file is displayed as >> a >> square. >> >> When I display the eps file inside a Word Document with original width >> and >> height the aspect ratio is not correct anymore. >> >> Do you have any idea why that happens? >> >> Word 2003 XML file: >> http://www.nabble.com/file/p16628242/eps_transcoder_problem.xml >> eps_transcoder_problem.xml >> >> SVG file: >> http://www.nabble.com/file/p16628242/e-cad.svg e-cad.svg >> >> Generated EPS file: >> http://www.nabble.com/file/p16628242/e-cad.eps e-cad.eps >> >> Code to transcode (tested with FOP 0.94 and 0.95beta) : >> >> final org.apache.batik.transcoder.SVGAbstractTranscoder tc = >> new org.apache.fop.render.ps.EPSTranscoder(); >> final org.apache.batik.transcoder.TranscoderInput ti = new >> TranscoderInput(inputStream); >> final org.apache.batik.transcoder.TranscoderOutput to = new >> TranscoderOutput(outputStream); >> tc.transcode(ti, to); >> >> Any help is highly appreciated. >> >> Matthias Reischenbacher >> -- >> View this message in context: >> http://www.nabble.com/EPS-transcoder---aspect-ratio-problem-tp16628242p16628242.html >> Sent from the FOP - Users mailing list archive at Nabble.com. >> > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/EPS-transcoder---aspect-ratio-problem-tp16628242p16701820.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
