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 2007/03/27 00:00:41 UTC
DO NOT REPLY [Bug 41951] New: - External graphic doesnt size properly with height set at 100%
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=41951>.
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=41951
Summary: External graphic doesnt size properly with height set at
100%
Product: Fop
Version: 0.93
Platform: PC
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: barry.pearce@copyrightwitness.net
The following XSL-FO causes a complaint about the graphics being out of limits
and DOES NOT render at the scaled size. The specification states that a height
of 100% should cause the area to be set at the same size of the parent (which
should be the size of extent in this case.
<?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 master-name="Form"
page-width="210mm" page-height="297mm"
margin-top="10mm" margin-bottom="10mm"
margin-left="10mm" margin-right="10mm"
padding="0">
<fo:region-body
margin="0" margin-top="32mm" padding="0"/>
<fo:region-before extent="32mm"
margin="0" padding="0"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Form">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="center"
height="100%" width="100%"
border-style="solid" border-color="orange" border-width="0.25mm">
<fo:external-graphic
border-style="solid" border-color="black" border-width="0.25mm"
scaling="uniform" scaling-method="resample-any-method"
height="100%" content-height="scale-to-fit"
src="logo.jpg"
/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block-container
height="100%" width="100%"
border-style="solid" border-color="blue" border-width="0.25mm">
<fo:block text-align="center" font-size="20pt" font-family="serif"
line-height="30pt">
LOGO CHECK
</fo:block>
</fo:block-container>
</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.
DO NOT REPLY [Bug 41951] - External graphic doesnt size properly with height set at 100%
Posted by bu...@apache.org.
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=41951>.
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=41951
------- Additional Comments From barry.pearce@copyrightwitness.net 2007-03-26 15:02 -------
Created an attachment (id=19800)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19800&action=view)
The rendered output in PDF.
Both PDF and PS render the same.
--
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.
DO NOT REPLY [Bug 41951] - External graphic doesnt size properly with height set at 100%
Posted by bu...@apache.org.
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=41951>.
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=41951
------- Additional Comments From barry.pearce@copyrightwitness.net 2007-03-26 15:02 -------
Created an attachment (id=19801)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19801&action=view)
The image used in the test.
--
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.