You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2004/12/04 03:46:58 UTC
DO NOT REPLY [Bug 32528] New: -
Rendering images wrong size
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32528>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32528
Summary: Rendering images wrong size
Product: Fop
Version: all
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: svg
AssignedTo: fop-dev@xml.apache.org
ReportedBy: mark@kitfox.com
I intend to use the file below to create a small book in which the pages are
defined as SVG files. The FO is intended to provide titles, page numbers, and
bundle things nicely so it can be displayed as a PDF. Unfortunately, the values
I use for the width and height of <fo:instream-foreign-object> and <svg> seem to
be ignored. When I transform the below document, there are large gaps both
above and below the image.
With the current settings, the svg content ought to obscure the header and
footer. However, the entire SVG has been squashed and leaves large gaps above
and below the image content. Could someone look at this and tell me if this is
an error in my coding or if it's a bug?
Thanks,
Mark McKay
-------
<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:svg="http://www.w3.org/2000/svg">
<!-- A typical printed page with -->
<fo:layout-master-set>
<fo:simple-page-master
master-name="A4" page-width="210mm" page-height="297mm"
margin-top="1cm" margin-bottom="1cm"
margin-left="1cm" margin-right="1cm">
<fo:region-body margin="0cm"/>
<!-- 2cm gutters on all sides-->
<fo:region-before extent="1cm"/>
<fo:region-after extent="1cm"/>
<fo:region-start extent="1cm"/>
<fo:region-end extent="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<!-- Content pages -->
<fo:page-sequence master-reference="A4">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align-last="justify"><fo:inline font-style="italic">Puzzle
Corner</fo:inline><fo:leader/><fo:inline
font-style="italic">http://www.kitfox.com/puzzlecorner</fo:inline></fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center"><fo:page-number/></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<!--fo:block text-align="center"-->
<fo:block>
<fo:instream-foreign-object width="190mm" height="277mm">
<svg xmlns="http://www.w3.org/2000/svg" width="190mm" height="277mm" viewBox="0
0 10 10">
<rect x="0" y="0" width="10" height="10" fill="green" stroke="black"
stroke-width="1"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
<fo:block>
<fo:instream-foreign-object width="190mm" height="277mm">
<svg xmlns="http://www.w3.org/2000/svg" width="190mm" height="277mm" viewBox="0
0 10 10">
<rect x="0" y="0" width="10" height="10" fill="blue" stroke="black"
stroke-width="1"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
<fo:block>
<fo:instream-foreign-object width="190mm" height="277mm">
<svg xmlns="http://www.w3.org/2000/svg" width="190mm" height="277mm" viewBox="0
0 10 10">
<rect x="0" y="0" width="10" height="10" fill="red" stroke="black"
stroke-width="1"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.