Re: Background Color

2002-02-27 Thread Josh Campbell
I'm pretty sure you can't at this stage. FOP accepts it in the 
fo:region-body without errors but doesn't do anything about it.
I used a table cell with a height attribute and put the color in that. 
Everything else went inside that cell.

Josh
Ian Taylor wrote:
How do you change the background color of a whole page? I am applying 
it to all my tables at the moment but there are white areas between 
them that I would like to be blue.

Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Inline line-height

2002-02-23 Thread Josh Campbell
I was under the impression that line-height was a block attribute. I may 
be wrong as I've never really tried to use it inline. In CSS it's 
usually applied to div tags (as opposed to inline span tags).

David Wood wrote:
Now that I'm thinking about it, is it just me, or is the line-height
attribute ignored for fo:inline/?
Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Inline

2002-02-20 Thread Josh Campbell
Another option would be to use a list -block to format it. You can then 
use fo:block to add in the indent.
I found it useful having those fo:blocks in there as you can hang pretty 
much anything off them.

Here's an example:
fo:list-block color=#ff font-size=14pt font-family=Helvetica
   fo:list-item
   fo:list-item-label
   fo:blockName/fo:block
   /fo:list-item-label
   fo:list-item-body
   fo:block start-indent=4cm24/fo:block
   /fo:list-item-body
   /fo:list-item
/fo:list-block
Meena wrote:
But if i want such an output, how could i acheive it?
Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Double space block vertical alignment

2002-02-19 Thread Josh Campbell
Mickey, John wrote:
I am trying to simulate a double spaced document using the line-height
attribute but I find that the lines of text are always centered vertically
in the block, is there a way to have the first line start flush against the
top of the block area ( all 12pts of extra space comes after the first line
instead of having 6pts before and 6pts after each line.)?
This has been bugging me as well so, sorry, no solution. I've been 
trying to find a way to control the height of a block (line-height seems 
to be the only thing that works) and have the text top aligned.

Has anyone pulled this off yet?
Thanks
Josh
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Getting started

2002-02-18 Thread Josh Campbell
I'm trying to use the commandline to turn a .fo into a pdf but am having 
some trouble getting FOP to kick into gear.

I'm setting the classpath manually at this stage with the following:
set CLASSPATH=c:\fop\build\fop.jar; c:\fop\lib\batik.jar; 
c:\fop\lib\jimi-1.0.jar; c:\xalan\bin\xalan.jar; c:\xalan\bin\xerces.jar

and trying to invoke FOP with:
fop invoice3.fo invoice3.pdf
I'm using Fop-0.20.1 and have JRE 1.3.1 installed in Windows NT4
Whenever I hit FOP it comes back with the following message:
The name specified is not recognized as an internal or external 
command, operable program or batch file.

Have I missed a step or got something set up wrong here.
Any help will be appreciated.
Thanks in advance,
Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Question about position=relative

2002-02-18 Thread Josh Campbell

However, the second block-container is not positioned relative (= with
100pt offset to the left and the top) to the preceding one.
The second block-container is positioned at the bottom of the page, with a
100pt offset to the left and to the bottom. It seems as if the 'position
=relative' property is ignored.
In Cascading Style Sheet layouts the position:relative attribute means 
the element is positioned relative to it's static position (ie. the 
position it would appear without the CSS turned on).

{ position:relative; top:100pt; left:100pt; } would move the element 
100pt from the top and 100pt from the left of it's static position. ie. 
down and right 100pt.

In your example, assuming .fo uses similar rules, I'm guessing your 
block container is appearing 100pt down and to the right of where it 
would appear without the top and left attributes.

You could either change these to position the element where you want it, 
use a position=absolute (if it's supported in .fo), or use a table 
layout to position the element.

Hope this helps,
Josh
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz