xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Augusta <rox...@WPI.EDU>
Subject Invisible Text
Date Fri, 02 Jul 2004 17:35:39 GMT
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


Mime
View raw message