xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "VAGNER Rodolphe" <rodolphe.vag...@eurodoc-sofilog.com>
Subject RE : SVG scaling issue (when rendering 2 SVGs of same height)
Date Fri, 05 Dec 2003 15:32:23 GMT
It may comes form your view box in svg documents : one is 56.xxxx width, the other only 16


--  -----Message d'origine-----
--  De : mathieu.fretiere@iworks.fr [mailto:mathieu.fretiere@iworks.fr] 
--  Envoyé : vendredi 5 décembre 2003 16:27
--  À : fop-user@xml.apache.org
--  Objet : SVG scaling issue (when rendering 2 SVGs of same height)
--  
--  
--  Hello,
--  
--  I'm trying to render a pdf containing external svg graphics and I 
--  encounter a scaling problem.
--  I know this topic was already discussed, but I want to know 
--  if there's 
--  something new.
--  
--  I put two SVGs in a table, in the same row, in two cells. 
--  These SVG have 
--  the same height, but different widths. But in the pdf they have a 
--  different size.
--  These SVG are quite plain (rectangles). They were created 
--  with Adobe 
--  Illustrator, they contain a "path" element. If I use a svg 
--  containing a 
--  "rect" element, the problem disapears. If I use a bitmap 
--  graphic too.
--  
--  I've tried to change some attributes (width, height...) of the 
--  fo:external-graphic tag but it doesn't work better. 
--  
--  I've joined the two SVGs, the xsl-fo file and the resulting 
--  pdf (it's not 
--  too big).
--  
--  Any idea ?
--  
--  Thanks.
--  
--  Here's the fo tree :
--  
--  <?xml version="1.0" encoding="UTF-8"?>
--  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
--    <fo:layout-master-set>
--      <fo:simple-page-master
--            margin-right="1cm"
--            margin-left="1cm"
--            margin-bottom="2cm"
--            margin-top="1cm"
--            page-width="21cm"
--            page-height="29.7cm"
--          master-name="first">
--                  <fo:region-body/>
--      </fo:simple-page-master>
--    </fo:layout-master-set>
--  
--    <fo:page-sequence master-reference="first">
--      <fo:flow flow-name="xsl-region-body">
--                          <fo:block>
--                                  <fo:table table-layout="fixed" 
--  height="30mm">
--                                          <fo:table-column 
--  column-width="25mm"/> 
--                                          <fo:table-column 
--  column-width="25mm"/>  
--                                          <fo:table-body> 
--              <fo:table-row height="30mm">
--                  <fo:table-cell>
--                          <fo:block>
--                                  <!-- green rectangle -->
--                                  <fo:external-graphic 
--  src="url('green_rect.svg')"  />
--                          </fo:block> 
--                  </fo:table-cell> 
--                  <fo:table-cell>
--                          <fo:block>
--                                  <!-- rose rectangle -->
--                                  <fo:external-graphic 
--  src="url('rose_rect.svg')" />
--                          </fo:block> 
--                  </fo:table-cell> 
--              </fo:table-row> 
--            </fo:table-body>
--                                  </fo:table>
--          </fo:block>
--      </fo:flow>
--    </fo:page-sequence>
--  </fo:root>
--  
--  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message