Try some sort of wrapper (tag within a tag)?
I never got FOP to properly find external images so I'm currently only
using inline SVG for images but it has size and positioning on multiple
tag levels (if that helps?).
<fo:block>
<xsl:attribute name="line-height">1</xsl:attribute>
<xsl:attribute name="font-size">0pt</xsl:attribute>
<fo:instream-foreign-object>
<xsl:attribute name="content-width"><xsl:value-of
select="$BLOCKW"/></xsl:attribute>
<xsl:attribute name="content-height"><xsl:value-of
select="$BLOCKH"/></xsl:attribute>
<xsl:attribute name="scaling">non-uniform</xsl:attribute>
<svg:svg>
<xsl:attribute name="preserveAspectRatio">xMinYMin meet</xsl:attribute>
<xsl:attribute name="width">100%</xsl:attribute>
<xsl:attribute name="height">100%</xsl:attribute>
<xsl:attribute name="viewBox"><xsl:value-of
select="concat('0',',','0',',','556',',','84')"/></xsl:attribute>
________________________________
From: Theresa Jayne Forster [mailto:[email protected]]
Sent: Friday, September 16, 2011 3:22 AM
To: [email protected]
Subject: RE: Conversion from 0.23 to 1.00
I found the problem, whilst 0.23 does not moan when you set the
content-width="123mm" apparently in 0.95 and above,
You have to have it set to "auto-scale" otherwise it will just appear as
full size....
Oh well.... Maybe the rescaling will work better - and what if you want
to crop it?
Kindest regards
Theresa Forster
Senior Software Developer
From: Eric Douglas [mailto:[email protected]]
Sent: 15 September 2011 16:17
To: [email protected]
Subject: RE: Conversion from 0.23 to 1.00
A sample would help.
Is it an external image? an instream image?
Are you setting the attributes?
content-width, content-height, scaling?
In my image block I also set line-height='1' and font-size='0pt'
________________________________
From: Theresa Jayne Forster [mailto:[email protected]]
Sent: Thursday, September 15, 2011 11:10 AM
To: [email protected]
Subject: Conversion from 0.23 to 1.00
I have converted my code from 0.23 to 1.00
But I am having problems with my graphics.
In the past we have used scale and it has scaled properly,
Now under 1.00 its not scaling at all (well cropping)
Am I missing something (the original 0.23 had been modded to provide
extras like cmyk as %, z-index and float)
My xsl is creating a fo file but the image is not being cropped, Is
there any way to keep it inside the block-container
I am getting errors like this
WARNING: Line 1 of a paragraph overflows the available area by 11339
millipoints. (See position 1399:11)
15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 17123 millipoints. (See position 1398:91)
15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 5784 millipoints. (See position 1984:91)
15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 5784 millipoints. (See position 1989:134)
Kindest regards
Theresa Forster
Senior Software Developer
________________________________
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3898 - Release Date: 09/15/11