You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mike Trotman <mi...@datalucid.com> on 2005/04/19 02:24:01 UTC
Re: FOP - external-graphic in absolutely positioned block container
- Solved
Thanks for checking the archives.
I also did a quick scan but couldn't find anything.
I think I have pinned down when the image vanishes.
It is when both dimensions of the image display size are too large to
fit in the box.
With a smaller width - the image is constrained in the box by width -
and the height is smaller than the box.
When I increase the width - the image expands to fill the width - and
the bottom of the image gets closer to the bottom of the box.
When I go beyond to the point where the image height exceeds the box -
then the image vanishes!
At 2.3in width - the image displays and just fills the box, at 2.4in the
image does not display as it's height would be larger than the box.
And I increased my sizes by 0.5in which allowed the image to expand and
vanish!
SO - an image IS constrained by the WIDTH of a box - but NOT the HEIGHT!
(And an image display that is too large to fit the box gets suppressed.)
I was using content-height and content-width as these correctly
constrain the image in XEP (height and width don't)
and obviously using the size of the block-container to constrain the
size in FOP.
But it was too long ago when I set this up.
I have now added a large comment to the relevant XSLT code.
Anyway - thanks to all those who responded.
Mike
Roland Neilands wrote:
>Mike,
>
>
>
>>However - my main question still remains:
>>
>>Why - when an image is displayed 'correctly' - does making the
>>block-container BIGGER make the image vanish?
>>Does anyone else have any experience of this?
>>
>>
>
>Yes, if the block-container no longer fits wholly within static-content for example, it doesn't display anything. You could display
>borders on the block-container to check.
>
>I have also seen logos disappear when the logo itself was much bigger than the block-container and it spat the dummy rather than
>scale the image down. I think that was only on certain image types (jpg?). I checked the archives quickly but can't find the
>details, sorry.
>
>Cheers,
>Roland
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP - external-graphic in absolutely positioned block container
- Solved
Posted by Mike Trotman <mi...@datalucid.com>.
Hi Roland.
Yes - I've tried height and width on the fo:external graphic - and they
do control the size in FOP - but not in XEP (3.8).
In XEP these set the height and width of the region for the fo:external
graphic area - but the image can spill outside this region - which is
why content-height and content-width are needed.
I'm assuming that - as this is the case - the scaling attribute is
supposed to apply to the content-h/w attributes?
I haven't tried this in FOP with scaling specified as well - but I'm
trying to come up with something that behaves the same in both XEP and
FOP at the moment.
Mike
Roland Neilands wrote:
>Mike,
>
>That's interesting, and possibly consistent with what I saw. I'll test that when I get a chance.
>Have you tried setting height &/or width (use scaling="uniform" if both) attributes on the external-graphic itself?
>
>Cheers,
>Roland
>
>
>
>>-----Original Message-----
>>From: Mike Trotman [mailto:mike.trotman@datalucid.com]
>>Sent: Tuesday, 19 April 2005 10:24 AM
>>To: fop-users@xmlgraphics.apache.org
>>Subject: Re: FOP - external-graphic in absolutely positioned block
>>container - Solved
>>
>>
>>Thanks for checking the archives.
>>I also did a quick scan but couldn't find anything.
>>
>>I think I have pinned down when the image vanishes.
>>It is when both dimensions of the image display size are too large to
>>fit in the box.
>>
>>With a smaller width - the image is constrained in the box by width -
>>and the height is smaller than the box.
>>When I increase the width - the image expands to fill the width - and
>>the bottom of the image gets closer to the bottom of the box.
>>When I go beyond to the point where the image height exceeds the box -
>>then the image vanishes!
>>
>>At 2.3in width - the image displays and just fills the box, at 2.4in the
>>image does not display as it's height would be larger than the box.
>>And I increased my sizes by 0.5in which allowed the image to expand and
>>vanish!
>>
>>SO - an image IS constrained by the WIDTH of a box - but NOT the HEIGHT!
>>(And an image display that is too large to fit the box gets suppressed.)
>>
>>I was using content-height and content-width as these correctly
>>constrain the image in XEP (height and width don't)
>>and obviously using the size of the block-container to constrain the
>>size in FOP.
>>But it was too long ago when I set this up.
>>I have now added a large comment to the relevant XSLT code.
>>
>>Anyway - thanks to all those who responded.
>>
>>
>>Mike
>>
>>Roland Neilands wrote:
>>
>>
>>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: FOP - external-graphic in absolutely positioned block container - Solved
Posted by Roland Neilands <rn...@pulsemining.com.au>.
Mike,
That's interesting, and possibly consistent with what I saw. I'll test that when I get a chance.
Have you tried setting height &/or width (use scaling="uniform" if both) attributes on the external-graphic itself?
Cheers,
Roland
> -----Original Message-----
> From: Mike Trotman [mailto:mike.trotman@datalucid.com]
> Sent: Tuesday, 19 April 2005 10:24 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOP - external-graphic in absolutely positioned block
> container - Solved
>
>
> Thanks for checking the archives.
> I also did a quick scan but couldn't find anything.
>
> I think I have pinned down when the image vanishes.
> It is when both dimensions of the image display size are too large to
> fit in the box.
>
> With a smaller width - the image is constrained in the box by width -
> and the height is smaller than the box.
> When I increase the width - the image expands to fill the width - and
> the bottom of the image gets closer to the bottom of the box.
> When I go beyond to the point where the image height exceeds the box -
> then the image vanishes!
>
> At 2.3in width - the image displays and just fills the box, at 2.4in the
> image does not display as it's height would be larger than the box.
> And I increased my sizes by 0.5in which allowed the image to expand and
> vanish!
>
> SO - an image IS constrained by the WIDTH of a box - but NOT the HEIGHT!
> (And an image display that is too large to fit the box gets suppressed.)
>
> I was using content-height and content-width as these correctly
> constrain the image in XEP (height and width don't)
> and obviously using the size of the block-container to constrain the
> size in FOP.
> But it was too long ago when I set this up.
> I have now added a large comment to the relevant XSLT code.
>
> Anyway - thanks to all those who responded.
>
>
> Mike
>
> Roland Neilands wrote:
>
> >Mike,
> >
> >
> >
> >>However - my main question still remains:
> >>
> >>Why - when an image is displayed 'correctly' - does making the
> >>block-container BIGGER make the image vanish?
> >>Does anyone else have any experience of this?
> >>
> >>
> >
> >Yes, if the block-container no longer fits wholly within static-content for example, it doesn't display anything. You
> could display
> >borders on the block-container to check.
> >
> >I have also seen logos disappear when the logo itself was much bigger than the block-container and it spat the dummy rather than
> >scale the image down. I think that was only on certain image types (jpg?). I checked the archives quickly but can't find the
> >details, sorry.
> >
> >Cheers,
> >Roland
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> >For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
> >
> >
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org