If the
image is totally off center, then the problem is probably not related to
scaling.
"IIRC
images", sorry I should have included a comma in there as
in:
"If I
remember correctly, images..."
It
seems a bit odd to me that the PDF renderer would center the image properly and
the PCL renderer would not center it at all. I have not looked at the code in a
long time, but I thought that FOP did all the layout before calling the
renderer. So it should just be saying "put the image here" and supplying the
appropriate coordinates to the renderer. But it is entirely possible that this
had changed - or perhaps even more likely - I am not remembering correctly. I
have not looked at FOP code much since the redesign started.
Art
-----Original Message-----Art Welch wrote:
From: Bruno Verachten [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 1:01 PM
To: [EMAIL PROTECTED]
Subject: Re: PCL renderer limitations
[EMAIL PROTECTED]" type="cite">Maybe...Hmmm. These are interesting.On the table problem, could it be that the part that appears to not be printing is actually outside of the printer's printable area?
[EMAIL PROTECTED]" type="cite">Totally ;-)How much is the image off center?
[EMAIL PROTECTED]" type="cite">I'm sorry, but what are IIRC images?If it just appears to be a little off center it may be because the PCLRenderer only supports images scaled in discrete steps. FOP's layout is unaware of this, so it may be placing the image based on what it thinks the actual scaled size is - not the size the PCLRenderer will produce. IIRC images are placed by the upper left corner - so this could cause an image to appear off center.
Here is the fo code I have:
<fo:block text-align="center" text-indent="1em" space-before="0.6em" space-after="0.6em" font-size="10pt" display-align="center">
<fo:external-graphic src="Logo.gif" content-height="53px" content-width="88px" scaling="uniform" scaling-method="auto"/>
</fo:block>
Thanks.
Bruno Verachten