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 2001/11/21 16:11:03 UTC
DO NOT REPLY [Bug 5001] New: -
content-width and content-height ignored?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5001>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5001
content-width and content-height ignored?
Summary: content-width and content-height ignored?
Product: Fop
Version: all
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: svg
AssignedTo: fop-dev@xml.apache.org
ReportedBy: jamie.lokier@degree2.com
I am trying to scale an SVG image, by using external-graphic with
the content-width and content-height attributes set.
Unfortunately whether I use "scale-to-fit" (to fit the width/height attributes),
or an explicit length, the graphic itself is not scaled.
I was not 100% sure that content-width and content-height should scale
the image, so I looked at the "XHTML to XSL formatting objects" example
XSLT file at http://www.antennahouse.com/axf11sampleEN.htm.
>From there it looks like I'm generating the right XSL, and FOP is
not scaling the images as it should.
I have seen the example of a scaled image in the FOP documentation.
It uses an instream-foreign-object SVG, which references the external
SVG using "svg:image" and explicitly set width and height.
This does rescale the image, but unfortunately there is no way to have
the image size determined from the layout context. For example, XSL
sizes such as "80%" to show an image with 80% of the width of the
current reference port do not work.
I am stuck working around this problem by using explicit sizes, and the
instream-foreign-object method for rescaling the image.
It would be nice if content-width and content-height were honoured.
cheers,
-- Jamie
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org