xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: EPS transcoder - aspect ratio problem
Date Tue, 15 Apr 2008 07:54:40 GMT
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message