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 Kevin <kb...@yahoo.com> on 2006/04/22 00:14:44 UTC
Block-Container in region-after text alignment
Hi,
I am trying to use 2 block-container's to show-up on the top right corner of the
PDF (like 2 table cells next to each other). But only one shows up and the other
does not. I am relatively new to XSL-FO. I have the code below. Please let me
know, what I am missing?.
<fo:static-content flow-name="after-content-first-page">
<fo:block-container absolute-position="absolute" top="0mm" right="2cm"
height="5mm" width="12.5mm" text-align="center" border-width="1pt"
border-style="solid" border-color="red">
<fo:block text-align="left"><xsl:value-of select="$margin-text1"/></fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="0mm" right="4cm" height="5mm"
width="12.5mm" text-align="center" border-width="1pt" border-style="solid"
border-color="blue">
<fo:block><xsl:value-of select="$margin-text2"/></fo:block>
</fo:block-container>
</fo:static-content>
(The first block container does not show-up in the PDF)
Thanks
kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Block-Container in region-after text alignment
Posted by Kevin <kb...@yahoo.com>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
> If you're doing OMR marks with FOP 0.91 or 0.92, it is recommended that
> you use absolute-position="fixed" so you can specify absolute
> coordinates relative to the upper-left corner of the paper. Furthermore,
> your earlier example was missing the "left" property. Thus, I believe
> the two b-cs are painted on top of each other (like Joerg suggested),
> because the layout code doesn't handle your case correctly, yet (only
> using "width" and "right").
>
> The "normal flow" comment may be based on a misunderstanding of your use
> case. Still, I'm not sure you'll be able to solve OMR marks like that.
> Back when I implemented it, I couldn't take that route.
>
> Jeremias Maerki
>
Jermias,
Thanks for your input. The "left" attribute made the difference like you said.
I'm positive this solution would work out for my case.
Thanks
-Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Block-Container in region-after text alignment
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
If you're doing OMR marks with FOP 0.91 or 0.92, it is recommended that
you use absolute-position="fixed" so you can specify absolute
coordinates relative to the upper-left corner of the paper. Furthermore,
your earlier example was missing the "left" property. Thus, I believe
the two b-cs are painted on top of each other (like Joerg suggested),
because the layout code doesn't handle your case correctly, yet (only
using "width" and "right").
The "normal flow" comment may be based on a misunderstanding of your use
case. Still, I'm not sure you'll be able to solve OMR marks like that.
Back when I implemented it, I couldn't take that route.
On 23.04.2006 22:01:32 Kevin wrote:
> J.Pietschmann <j3322ptm <at> yahoo.de> writes:
>
> >
> > Kevin wrote:
> > ...
> > > <fo:block-container absolute-position="absolute" top="0mm" right="2cm"
> > ^^^^^^^^^^^^^^^^^
> > > (The first block container does not show-up in the PDF)
> >
> > I guess you are using FOP 0.20.5. The absolute-position property is not
> > implemented in this version. The content of the block container should
> > be inserted into the normal flow. Maybe its been clopped or obscured by
> > other content. BTW using absolutely positioned block containers should
> > be unnecessary in most cases.
> >
> > J.Pietschmann
> >
>
>
> Thanks for your response. I'm sorry, I was initally using position="absolute",
> but didn't post the correct code. I am using fop-0.91beta version. Could you
> please clarify your response "The content of the block container should be
> inserted into the normal flow". I am trying to implement a solution for OMR
> marks, so I need to position the content at a absolute position. The content in
> this case is "___". Pl let me know your thoughts.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Block-Container in region-after text alignment
Posted by Kevin <kb...@yahoo.com>.
J.Pietschmann <j3322ptm <at> yahoo.de> writes:
>
> Kevin wrote:
> ...
> > <fo:block-container absolute-position="absolute" top="0mm" right="2cm"
> ^^^^^^^^^^^^^^^^^
> > (The first block container does not show-up in the PDF)
>
> I guess you are using FOP 0.20.5. The absolute-position property is not
> implemented in this version. The content of the block container should
> be inserted into the normal flow. Maybe its been clopped or obscured by
> other content. BTW using absolutely positioned block containers should
> be unnecessary in most cases.
>
> J.Pietschmann
>
Thanks for your response. I'm sorry, I was initally using position="absolute",
but didn't post the correct code. I am using fop-0.91beta version. Could you
please clarify your response "The content of the block container should be
inserted into the normal flow". I am trying to implement a solution for OMR
marks, so I need to position the content at a absolute position. The content in
this case is "___". Pl let me know your thoughts.
Thanks
-Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Block-Container in region-after text alignment
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Kevin wrote:
...
> <fo:block-container absolute-position="absolute" top="0mm" right="2cm"
^^^^^^^^^^^^^^^^^
> (The first block container does not show-up in the PDF)
I guess you are using FOP 0.20.5. The absolute-position property is not
implemented in this version. The content of the block container should
be inserted into the normal flow. Maybe its been clopped or obscured by
other content. BTW using absolutely positioned block containers should
be unnecessary in most cases.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org