RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
Roland,

Use nested tables:

fo:table table-omit-header-at-break=false
  fo:table-column column-width=3cm/
  fo:table-column column-width=17cm/
  fo:table-header
fo:table-row
  fo:table-cell
fo:block !-- Your image here -- /fo:block
  /fo:table-cell
  fo:table-cell /
/fo:table-row
  /fo:table-header
  fo:table-body
fo:table-row
  fo:table-cell /
  fo:table-cell
  
!-- Your current table (text only) -- 
fo:table table-omit-header-at-break=false
   ...
/fo:table
  
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Cheers,
Roland

 I need to build a table with a header line containing an image and a single
 line of text. The problem is the image beeing to high to fit into the header
 line which causes the header line to be resized vertically to match the
 height of the image.
 
 But i need the image to overflow the bottom of the header line (leaving its
 height unchanged) so that it flows right into the body area. The problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously cannot be
 mixed.
 
 
 I try to draw what i want to get (view with fixed-width font):
 
 
 
 xsl-fo-area   /  in PDF it should look like that
 __/
   /
   /
   /  +-+
 table-header  /  | |   Some header text ...
   /  | header- |
   /  |  image  |   first row of table-body
   /  | |   second row of table-body
 table-body/  +-+   third row of table-body
   /  .
   /  .
   /  .
   /  .
   /
 
 
 (i hope that makes my problem clear)
 
 
 As i generate the fo code and the PDF at runtime from different data in a
 database, there may occur page breaks cutting the table into several pieces
 and the header absolutely has to appear above each piece.
 I also tried to use position=relative with the top and left properties set
 but did not get it working although i am sure this should work with the
 actual version. Mabe i just don't see the forest for the trees ...
 
 Does anyone have an idea of how to achieve this?
 I would really appreciate any hint.
 
 Thanks in advance,
 Roland
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]

 Roland,

 Use nested tables:


Cool! There goes my attempt ... :)

Only problem I still see is how's he going to make the contents of the
table-body flow alongside the image in the header.


Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
  Use nested tables:
 Only problem I still see is how's he going to make the contents of the
 table-body flow alongside the image in the header.

It's a separate table with a separate header. Try it  see ;)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
Apologies, code should have been:

fo:table
  fo:table-column column-width=3cm/
  fo:table-column column-width=17cm/
  fo:table-body
fo:table-row
  fo:table-cell
fo:table table-omit-header-at-break=false
  fo:table-column column-width=3cm/
  fo:table-header
  fo:table-row
fo:table-cell
  fo:block !-- Your image here -- /fo:block
/fo:table-cell
  /fo:table-row
/fo:table
  /fo:table-cell
  fo:table-cell
fo:table-column column-width=17cm/
fo:table-header
  fo:table-row
fo:table-cell
!-- Your current table (text only) -- 
  fo:table table-omit-header-at-break=false
...
  /fo:table
/fo:table-cell
  /fo:table-row
/fo:table
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Cheers,
Roland

 I need to build a table with a header line containing an image and a single
 line of text. The problem is the image beeing to high to fit into the header
 line which causes the header line to be resized vertically to match the
 height of the image.
 
 But i need the image to overflow the bottom of the header line (leaving its
 height unchanged) so that it flows right into the body area. The problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously cannot be
 mixed.
 
 
 I try to draw what i want to get (view with fixed-width font):
 
 
 
 xsl-fo-area   /  in PDF it should look like that
 __/
   /
   /
   /  +-+
 table-header  /  | |   Some header text ...
   /  | header- |
   /  |  image  |   first row of table-body
   /  | |   second row of table-body
 table-body/  +-+   third row of table-body
   /  .
   /  .
   /  .
   /  .
   /
 
 
 (i hope that makes my problem clear)
 
 
 As i generate the fo code and the PDF at runtime from different data in a
 database, there may occur page breaks cutting the table into several pieces
 and the header absolutely has to appear above each piece.
 I also tried to use position=relative with the top and left properties set
 but did not get it working although i am sure this should work with the
 actual version. Mabe i just don't see the forest for the trees ...
 
 Does anyone have an idea of how to achieve this?
 I would really appreciate any hint.
 
 Thanks in advance,
 Roland
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Roland Schroth
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]

 Roland,

 Use nested tables:

That is what i tried yesterday, too. Thanks anyway.
It's a solution to get the image in the first header of the table. But i
still end up with the problem having it repeated after a page break.
The text header will be repeated as there is data in its table-body being
continued after the page break. But there is no data in the table-body that
belongs to the image header so there is no reason for FOP to repeat the
header (the image) on the next page.
And with this problem in mind i come to the idea of Andreas.

 - Original Message - 
 From: Andreas L. Delmelle [EMAIL PROTECTED]


 I see a remote possiblity in performing some XSL trickery (resting on the
 assumption that the rows in the table body are generated by XML elements).
 If you define a row height globally in your stylesheet, as well as the
 region-body height... You know in advance how many rows will fit on a
 page... ( $regbh div $rowh ).

And here we have my next problem ...
There occur line breaks in the rows (mostly generated within FOP caused by
hyphenation), that i cannot calculate that easy. Therefore i cannot set a
fixed row height and i do not know how many rows there will be on a page. I
tried to calculate these linebreaks according to the amount of text in the
fields but that's quite dirty (and not completely functioning at all ...)

 For the moment, however, it's the closest thing to a solution I can come
up
 with...

I agree.

I think i will try to get some other things working first and come back to
this one next week. Sometimes a weekend of doing nothing helps more than
days of thinking ;-)

Thanks to both of you and have a nice weekend,
Roland



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Schroth [mailto:[EMAIL PROTECTED]


  -Original Message-
  From: Roland Neilands [mailto:[EMAIL PROTECTED]
 
  Roland,
 
  Use nested tables:

 That is what i tried yesterday, too. Thanks anyway.
 It's a solution to get the image in the first header of the table. But i
 still end up with the problem having it repeated after a page break.

Aaah... you *don't* need the image repeated across pages.

 The text header will be repeated as there is data in its table-body being
 continued after the page break. But there is no data in the
 table-body that

So, the image would actually belong to the table-body, and only the text
belongs to table-header (? correct?).
In that case my proposal could work, if it were not for the complication
described below.

 There occur line breaks in the rows (mostly generated within FOP caused by
 hyphenation), that i cannot calculate that easy. Therefore i cannot set a
 fixed row height and i do not know how many rows there will be on
 a page. I
 tried to calculate these linebreaks according to the amount of text in the
 fields but that's quite dirty (and not completely functioning at all ...)


Very dirty indeed... Imagine having to deal with a situation like this and
having to base your calculations on the metrics of the particular font being
used. (for fixed-width fonts this would be a bit less complicated since you
can just take the number of chars and multiply that by the charwidth).

 I think i will try to get some other things working first and come back to
 this one next week. Sometimes a weekend of doing nothing helps more than
 days of thinking ;-)


Very wise indeed!

Cheerz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Roland Schroth
   -Original Message-
   From: Roland Neilands [mailto:[EMAIL PROTECTED]
  
   Roland,
  
   Use nested tables:
 
  That is what i tried yesterday, too. Thanks anyway.
  It's a solution to get the image in the first header of the table. But i
  still end up with the problem having it repeated after a page break.

 Aaah... you *don't* need the image repeated across pages.

Ooops ... no sorry. One of these situations, my lack of practice with the
english language shows up.

I  *absolutely need*  it to be repeated.

Thanks again,
Roland



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unkown font error driving me crazy

2003-11-14 Thread Jerry Sheehan
Hi Everyone,

I have searched in vain, but found the search difficult. I have a third party appplication that I'm using that calls this batch file,

@ECHO OFF
rem %~dp0 is the expanded pathname of the current script under NTset LOCAL_FOP_HOME=if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
set LIBDIR=%LOCAL_FOP_HOME%libset LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-cvs-20020806.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jarjava -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8

I have added several new fonts to my system and I'm attempting to use the userconfig.xml file as shown below:

!--!DOCTYPE configuration SYSTEM "config.dtd"--
!-- 
this file contains templates which allow an user easy 
configuration of Fop. Actually normally you don't need this configuration 
file, but if you need to change configuration, you should
always use this file and *not* config.xml. 
Usage: java org.apache.fop.apps.Fop -c userconfig.xml -fo fo-file -pdf pdf-file
--
configuration
!-- 
baseDir: normally the base directory is the directory where the fo file is 
located. if you want to specify your own, uncomment this entry.
This value can also be a URL. Actually, the value is converted to 
a URL.
--
!-- 
entry
keybaseDir/key
value/value
/entry
--
!-- 
fontBaseDir: Similar to baseDir, except that this value is used for fonts. If
it isn't specified, the value from baseDir is used.
--
!-- 
entry
keyfontBaseDir/key
value/value
/entry
--
!--

HYPHENATION 

--
!--
hyphenation directory 
if you want to specify your own directory with hyphenation pattern
then uncomment the next entry and add the directory name
--
!--
entry
keyhyphenation-dir/key
value/java/xml-fop/hyph/value
/entry
--
!--

Add fonts here

--
fonts
!-- example --
!--
font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf"
font-triplet name="Arial" style="normal" weight="normal"/
font-triplet name="ArialMT" style="normal" weight="normal"/
/font
font metrics-file="arialb.xml" kerning="yes" embed-file="arialb.ttf"
font-triplet name="Arial" style="normal" weight="bold"/
font-triplet name="ArialMT" style="normal" weight="bold"/
/font
font metrics-file="ariali.xml" kerning="yes" embed-file="ariali.ttf"
font-triplet name="Arial" style="italic" weight="normal"/
font-triplet name="ArialMT" style="italic" weight="normal"/
/font
font metrics-file="arialbi.xml" kerning="yes" embed-file="arialbi.ttf"
font-triplet name="Arial" style="italic" weight="bold"/
font-triplet name="ArialMT" style="italic" weight="bold"/
/font
--
!-- Example Japanese fonts
font metrics-file="msgothic.xml" embed-file="D:\winnt\font\msgothic.ttc" kerning="yes"
font-triplet name="Gothic" style="normal" weight="normal"/
font-triplet name="Gothic" style="normal" weight="bold"/
font-triplet name="Gothic" style="italic" weight="normal"/
font-triplet name="Gothic" style="italic" weight="bold"/
/font
font metrics-file="msmincho.xml" embed-file="Cyberbit.ttf" kerning="yes"
font-triplet name="Mincho" style="normal" weight="normal"/
font-triplet name="Mincho" style="normal" weight="bold"/
font-triplet name="Mincho" style="italic" weight="normal"/
font-triplet name="Mincho" style="italic" weight="bold"/
/font
--
font metrics-file="free3of9.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\free3of9.ttf"
font-triplet name="Free 3 of 9" style="normal" weight="normal"/
/font
font metrics-file="free3of9.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\free3of9.ttf"
font-triplet name="Free 3 of 9" style="bold" weight="italic"/
/font
font metrics-file="free3of9.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\free3of9.ttf"
font-triplet name="Free 3 of 9" style="bold" weight="bold"/
/font
/fonts
/configuration

but everytime i run the xsl:fo I get an error that the font is unkown, so it appears that this userconfig file is not being called and I don't understand what I need to do to call it.

I found this link, http://xml.apache.org/fop/embedding.html#config-external
But I don't know where that information goes.
Thanks


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Re: Unkown font error driving me crazy

2003-11-14 Thread J.Pietschmann
Jerry Sheehan wrote:
but everytime i run the xsl:fo I get an error that the font is unkown, so it
appears that this userconfig file is not being called and I don't understand
what I need to do to call it.
I found this link, http://xml.apache.org/fop/embedding.html#config-external
Close. See
  http://xml.apache.org/fop/configuration.html#general-available
And please, please, *please* don't use this obnoxious web mailer
for your next post, or at least keep it short.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]