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 Adam Augusta <ro...@WPI.EDU> on 2004/07/02 19:35:39 UTC

Invisible Text

I need to do simple color separation.  Blue ink goes on one page, red ink
goes on another.

So given the line:
[Blue]You [/Blue][Red]are my [/Red][Blue]Sunshine[/Blue]

I need to print one page with:
"You        Sunshine"
and one page with:
"    are my         "

With XSL:FO, the natural way to do this would be to something like:

[Page 1]
<fo:block><fo:inline visibility="hidden">You are my </fo:inline><fo:inline 
color="#ff0000">sunshine.</fo:inline></fo:block>

[Page 2]
<fo:block><fo:inline color="#0000ff">You are my </fo:inline><fo:inline 
visibility="hidden">sunshine.</fo:inline></fo:block>

But in FOP, the visibility property isn't supported.  Is my only recourse 
to do something like this?

[Page 1]
fo:block-container top="1.2343278in" left="1in" 
color="#ff0000"><fo:block><fo:inline>You are 
my</fo:inline></fo:block></fo:block-container>

[Page 2]
<fo:block-container top="3.7382423in" left="1in" 
color="#0000ff><fo:block><fo:inline>sunshine</fo:inline></fo:block></fo:block-container>

That's pretty ugly and requires my calculating width and kerning using 
the XML metric file.  Any other suggestions?

-Adam

PS: Whoever is responsible for maintaining the fop page.  
http://xml.apache.org/fop/fonts.html#custom specifies the avalon framework 
classpath as lib/avalon-framework.jar, when the install is actually 
avalon-framework-cvs-20020806.jar.  Not a hard problem for a user to 
solve, but you might include a note.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Invisible Text

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Adam Augusta wrote:
> But in FOP, the visibility property isn't supported.  Is my only recourse 
> to do something like this?

Check whether white on white works for you:

<fo:block><fo:inline color="#000000">You are my </fo:inline
  ><fo:inline color="#ff0000">sunshine.</fo:inline></fo:block>

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Invisible Text

Posted by Adam Augusta <ro...@WPI.EDU>.
> [Page 1]
> fo:block-container top="1.2343278in" left="1in" 
> 
> [Page 2]
> <fo:block-container top="3.7382423in" left="1in" 

Typo!  Transpose the top and left values.

-Adam



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org