Accessing total page

2004-10-22 Thread MIDON ALEXIS

hi,

is it possible to access the total page?

My goal is to format a footer like page 2 of 21

I am able to get the current page number (page-number) but the total remains
unknown.

Thx in advance.


Alexis

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



RE: Accessing total page

2004-10-22 Thread Mark Donnelly
It is possible Alexis. See the following code:

At the end of your fo document put a variable like this:

snip

!-- id used to calculate total pages --
fo:block id=terminator/

Where you would like the page (x of y) printed put the following:

snip

fo:page-number/ of fo:page-number-citation ref-id=terminator/

That works nicely in my documents. 

A warning though, there is a notice about this potentially causing memory
problems in very large documents:

http://xml.apache.org/fop/running.html#memory

Hope this helps,

Mark

-Original Message-
From: MIDON ALEXIS [mailto:[EMAIL PROTECTED]
Sent: 22 October 2004 10:12
To: '[EMAIL PROTECTED]'
Subject: Accessing total page



hi,

is it possible to access the total page?

My goal is to format a footer like page 2 of 21

I am able to get the current page number (page-number) but the total remains
unknown.

Thx in advance.


Alexis

-
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: Accessing total page

2004-10-22 Thread TAILLEZ Yannick
See http://xml.apache.org/fop/faq.html#fo-total-pages

-Original Message-
From: MIDON ALEXIS [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 2004 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: Accessing total page



hi,

is it possible to access the total page?

My goal is to format a footer like page 2 of 21

I am able to get the current page number (page-number) but the total remains
unknown.

Thx in advance.


Alexis

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










Ce message ainsi que toutes pièces jointes (le message) sont confidentiels
et sont exclusivement destinés à l'usage de la personne à laquelle ils sont
adressés. Tout point de vue ou toute opinion contenus dans ce message
expriment la pensée personnelle de leur auteur et ne représentent pas
nécessairement la position des sociétés du Groupe GEFCO. Si vous n'êtes pas
la personne à laquelle ce message est destiné, veuillez noter que vous avez
reçu cet e-mail par erreur et qu'il vous est strictement interdit
d'utiliser, de diffuser, de transférer, d'imprimer ou de copier ce message.
Si vous avez reçu ce message par erreur, merci de contacter la personne qui
vous l'a adressé et de l'effacer immédiatement. Les sociétés du Groupe GEFCO
déclinent toute responsabilité en cas d'altération, de modification,
d'édition, de diffusion sans autorisation de ce message ou en cas
d'affection de ce message par un virus.

This message and any attachments (the message) are confidential and
intended solely for the use of the individual to whom they are addressed.
Any views or opinions presented are solely those of the author and do not
necessarily represent those of the GEFCO Group of Companies. If you are not
the intended recipient, be advised that you have received this email in
error and that any use, dissemination, forwarding, printing, or copying of
this message is strictly prohibited. If you have received this message in
error please contact the sender and delete the message immediately. The
GEFCO Group of Companies shall not be liable for the message if altered,
changed, falsified, edited, diffused without authorization or affected by
any virus.


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



Retrieve-marker problem. Can anyone help with wrapper workaround?

2004-10-22 Thread John Burgess



I am trying to use maker and retrieve-marker to put 
the title of the current chapter into the header of my documents.
I have this working BUT the formatting of the 
chapter title in the header is the same as where the marker is i.e. Large 

and Bold, appropriately for the title of a chapter 
bit not for a running header.

I know this is a known problem with fop (I am using 
0.20.5 by the way). However, in the mailing list archive I saw amongst the 
messages dealing with this problem one from Andreas L. Delmelle 
saying:

Oh, another detail: there's a nasty bug with 
markers that renders them withthe same properties as the region/block where 
they are defined, so to makeit work correctly, you have to add an fo:wrapper 
around the marker to setthe font-size/-weight etc. to the same values they 
have in the staticcontent...For more info: check the examples for 
markers that came with 
FOP(FOP_HOME/examples/fo/markers)---

I think I have probably misunderstood what Andreas 
means. 

What I did was to have

fo:block 
use-attribute-set="chapter-heading" !-- sets 20 point, bold font 
--
fo:wrapper 
use-attribute-set="headers-footers" !-- sets 8 point light 
--
fo:marker 
marker-class-name="chapter"Introduction/fo:marker
/fo:wrapper

But while that meant the header was in the correct 
font etc., the chapter title was then very small.
Is there a workaround for this 
situation?

Best WishesJohn BurgessRisk Decisions 
LimitedT: 01865 718666F: 01865 718600[EMAIL PROTECTED]http://www.riskdecisions.com/

---Outgoing mail is certified Virus 
Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.776 / 
Virus Database: 523 - Release Date: 16/10/04


Help required for Japanese FOP

2004-10-22 Thread Sanket Desai
Hi all,

Can anyone guide me for converting current FOP i.e. 0.20.5 for
Japanese support. I found that, currently FOP doesn't support
Japanese. Please guide me.


regards,


Sanket.

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



Necessary files

2004-10-22 Thread Johannes Franz
Hi there,

i want to reduce the size of my fop-directory, because it is a little bit to 
big for my taste. So what are the really necessary files to run fop?

Greetings,
Johannes.


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



Re: Help required for Japanese FOP

2004-10-22 Thread John Mok
Yes, FOP 0.20.5 does support Japanese. All you required is to create a 
font metrics from a font file that support Japanese, e.g. MSGothic found 
in Windows.  Then, register the font metrics file as documented in the 
following :-

http://xml.apache.org/fop/fonts.html
Afterwards, you may referenc the font in your FO. I followed the 
instructions and succeeded to create PDF with Japanese characters.

Thank you,   John Mok
Sanket Desai wrote:
Hi all,
Can anyone guide me for converting current FOP i.e. 0.20.5 for
Japanese support. I found that, currently FOP doesn't support
Japanese. Please guide me.
regards,
Sanket.
-
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: Retrieve-marker problem. Can anyone help with wrapper workaround?

2004-10-22 Thread Louis . Masters

John:

Here is my marker code (FOP 0.20.3):

!--parse out the markers--
fo:inline font-size=7pt color=black font-weight=normal
white-space-collapse=true
  xsl:for-each select=@*[starts-with(name(.),'marker__')]
fo:inlinefo:marker
marker-class-name={name(.)}xsl:value-of
select=.//fo:marker/fo:inline
  /xsl:for-each
/fo:inline
!--parse out the markers--

The inner inline was to fix the fo:marker must be an initial child,and
'marker-class-name' must be unique for same parent messages.  The for
loop is because I have multiple dynamically generated markers in a given
area.

Hope this helps.

-Lou



|-+
| |   John Burgess   |
| |   [EMAIL PROTECTED]|
| |   isions.com  |
| ||
| |   10/22/2004 05:13 |
| |   Please respond to|
| |   fop-user |
| ||
|-+
  
---|
  | 
  |
  |To:  [EMAIL PROTECTED] 
|
  |cc:  
  |
  |Subject: Retrieve-marker problem.  Can anyone help with wrapper 
workaround?|
  
---|



I am trying to use maker and retrieve-marker to put the title of the
current chapter into the header of my documents.
I have this working BUT the formatting of the chapter title in the header
is the same as where the marker is i.e. Large
and Bold, appropriately for the title of a chapter bit not for a running
header.

I know this is a known problem with fop (I am using 0.20.5 by the way).
However, in the mailing list archive I saw amongst the messages dealing
with this problem one from Andreas L. Delmelle saying:

Oh, another detail: there's a nasty bug with markers that renders them with
the same properties as the region/block where they are defined, so to make
it work correctly, you have to add an fo:wrapper around the marker to set
the font-size/-weight etc. to the same values they have in the static
content...

For more info: check the examples for markers that came with FOP
(FOP_HOME/examples/fo/markers)

---

I think I have probably misunderstood what Andreas means.

What I did was to have

fo:block use-attribute-set=chapter-heading !-- sets 20 point, bold
font --
fo:wrapper use-attribute-set=headers-footers !-- sets 8 point light
--
fo:marker marker-class-name=chapterIntroduction/fo:marker
/fo:wrapper

But while that meant the header was in the correct font etc., the chapter
title was then very small.
Is there a workaround for this situation?

Best Wishes
John Burgess
Risk Decisions Limited
T: 01865 718666
F: 01865 718600
[EMAIL PROTECTED]
http://www.riskdecisions.com/


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 16/10/04





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



RE: Retrieve-marker problem. Can anyone help with wrapper workaround?

2004-10-22 Thread Andreas L. Delmelle
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]


 Here is my marker code (FOP 0.20.3):

 !--parse out the markers--
 fo:inline font-size=7pt color=black font-weight=normal
 white-space-collapse=true
   xsl:for-each select=@*[starts-with(name(.),'marker__')]
 fo:inlinefo:marker
 marker-class-name={name(.)}xsl:value-of
 select=.//fo:marker/fo:inline
   /xsl:for-each
 /fo:inline
 !--parse out the markers--

This solution will also do the trick, but...

Be careful with fo:inline's. As I recall, in FOP 0.20.X fo:wrapper's still
treated the same way as fo:inline, but according to the spec fo:inline
generates areas of itself --thus an fo:wrapper seems to be more appropriate
here (well actually... 'nothing' seems to be even more appropriate, but you
can't win 'em all ;-) )

Greetz,

Andreas



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



Re: Retrieve-marker problem. Can anyone help with wrapper workaround?

2004-10-22 Thread John Burgess
Andreas

Thanks very much!  Putting the marker in a wrapper in an otherwise empty
block stopped it appearing, and had it correctly formatted in the footer.

I've looked again at what was happening before and you're quite right - the
Chapter didn't appear.  I'm afraid I had misunderstood fo:marker and assumed
it took a copy of the text inside that would also be shown in the flow and
that was what I saw, rather than what was actually in front of my eyes.

My apologies, and once again thanks very much indeed!

John

- Original Message -
From: Andreas L. Delmelle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 22, 2004 4:41 PM
Subject: RE: Retrieve-marker problem. Can anyone help with wrapper
workaround?


  -Original Message-
  From: John Burgess [mailto:[EMAIL PROTECTED]


 Hi John,

 I know it sounds like a bit of a pain, but try to use this:

 fo:block
 fo:wrapper use-attribute-set=headers-footers !-- sets 8 point
 ight  --
 fo:marker marker-class-name=chapterIntroduction/fo:marker
 /fo:wrapper
 /fo:block

 fo:block use-attribute-set=chapter-heading
 Introduction
 /fo:block

 Notice that the actual title appears in two places (under the
 fo:marker/fo:wrapper, and once again in a block *after* the wrapper)

 I don't really see how your problem could arise though... IIC, then the
text
 placed under fo:marker shouldn't be visible anywhere except when there is
a
 corresponding fo:retrieve-marker that retrieves it --at least that's the
way
 it currently works for me, and how it's defined in the spec:

 The fo:marker does not directly produce any area. Its children may be
 retrieved and formatted from within an fo:static-content, using an
 fo:retrieve-marker...

 Currently, FOP maintenance version only has a problem with the '...and
 formatted...' part. The rest seems to be handled quite OK.

 Greetz,

 Andreas




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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 16/10/04



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



exception on error

2004-10-22 Thread Agar, Robert
hi all,

I have FOP running embedded in a java program. How do I make it throw an 
exception on an error, rather than just logging it?

The particular error I want it to fail on is this:
[ERROR] Error while creating area : Error with image URL: Images\test.jpeg (The 
system cannot find the path specified) and no base URL is specified

thanks
Rob


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


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