AW: marker value to variable [SOLVED]

2006-07-25 Thread Alexander Schwartz
Hello Glen,

One thing when doing calculations in XSL: 

All these numbers are floats, therefore every calculation may give you 
unexpected rounding errors.

http://www.w3.org/TR/xpath#section-Number-Functions

Is there a way to avoid this?

Thanks,
Alex.

> 
  
Alexander  Schwartz
PLUS Finanzservice GmbH
Otto-von-Guericke-Ring 15
65205  Wiesbaden
T.: 06122 - 999 906
F.: 06122 - 999 44906
[EMAIL PROTECTED]
 
--
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; 
please reply to this e-mail and highlight the error.
 
Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. We 
advise that you understand and observe this lack of security when e-mailing us.
 
Viruses: Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free.
--
-Ursprüngliche Nachricht-

> Von: Glen Mazza [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 20. Juli 2006 03:30
> An: fop-users@xmlgraphics.apache.org
> Betreff: Re: marker value to variable [SOLVED]
> 
> 
> *Very* impressive and clean solution, Andreas.  I wish I could have 
> thought of that.
> 
> Glen
> 
> pat wrote:
> > YES !!! That's it !!! That's the way :-)
> > 
> > My problem was that I firstly counted the summary and then 
> I've try to 
> > split the fraction instead firstly count the integer and 
> fraction and 
> > then only disply them.
> > 
> > Thanks a lot !!!
> > 
> >  Pat
> > 
> > On Wed, 19 Jul 2006 18:26:22 +0200, Andreas L Delmelle wrote
> > 
> >>On Jul 19, 2006, at 17:16, Andreas L Delmelle wrote:
> >>
> >>
> >>
> >>To illustrate what I mean (untested, but seems OK, for positive
> >>numbers at least... gotta leave some to you ;)):
> >>
> >>
> >>   
> >>   
> >>   
> >>
> >>   
> >> 
> >>   
> >> 
> >> 
> >>   
> >> 
> >>   
> >>
> >>
> >>and then
> >>
> >>
> >>   
> >>   ...
> >> integer part is 
> >> 
> >> fractional part is 0.
> >> 
> >>   ...
> >>
> >>
> >>No?
> >>
> >>IOW: don't focus *too* much on retrieve-marker alone, perform both
> >>sum and separation *before* creating the markers.
> >>Plus the usual completions, of course, like 'take care of floor();  
> >>for negative numbers use ceiling() to obtain the integer part' and  
> >>'take the absolute value of the fractional part'...
> >>
> >>HTH!
> >>
> >>Cheers,
> >>
> >>Andreas
> >>
> >>
> -
> >>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]
> > 
> > 
> 
> 
> -
> 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]



AW: Resetting page counts in fop

2006-03-31 Thread Alexander Schwartz
Jeffrey,

you may want to add 

   force-page-count="no-force"

as well to avoid blank pages between invoices, otherwise a page "1" would 
always start on an odd page. 

Alex.

> 
  
Alexander  Schwartz
PLUS Finanzservice GmbH
Otto-von-Guericke-Ring 15
65205  Wiesbaden
T.: 06122 - 999 906
F.: 06122 - 999 44906
[EMAIL PROTECTED]
 
--
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; 
please reply to this e-mail and highlight the error.
 
Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. We 
advise that you understand and observe this lack of security when e-mailing us.
 
Viruses: Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free.
--
-Ursprüngliche Nachricht-

> Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 31. März 2006 11:34
> An: fop-users@xmlgraphics.apache.org
> Betreff: Re: Resetting page counts in fop
> 
> 
> You can use initial-page-number="1" on every 
> fo:page-sequence. Your intuition about using position() to 
> generate unique ids is good. HTH
> 
> On 30.03.2006 22:50:29 Noll, Jeffrey T   HS wrote:
> > I'm generating a single PDF that contains multiple invoices. The 
> > invoices each have a separate page count. I want the page counts on 
> > each invoice in the PDF to be relative to only itself.
> > 
> > IE the 3rd invoice has 2 pages so should show page 1 of 
> 2 and 2 of 2 
> > in their headers.
> > 
> > Is there an easy way of doing this? Using position() to dynamically 
> > create an fo:block that has the position() as part of the id to 
> > uniquely handle the last page. But I'm not sure how to get 
> the relative current page.
> > Any ideas appreciated,
> 
> 
> Jeremias Maerki
> 
> 
> -
> 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]



AW: Page Numbers

2006-02-23 Thread Alexander Schwartz
Andre,

I had a similar problem, and I included barcode elements in the static areas of 
a page. Finally I decided to take barcode4j as a template for my own FOP 
extension and to derive some classes from the original PageNumber*.java Classes 
in included in the FOP sourcecode. 

That gave me the chance to include current and total page number together with 
other information in the barcode. 

Alex.

> 
  
Alexander  Schwartz
PLUS Finanzservice GmbH
Otto-von-Guericke-Ring 15
65205  Wiesbaden
T.: 06122 - 999 906
F.: 06122 - 999 44906
[EMAIL PROTECTED]
 
--
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; 
please reply to this e-mail and highlight the error.
 
Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. We 
advise that you understand and observe this lack of security when e-mailing us.
 
Viruses: Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free.
--
-Ursprüngliche Nachricht-

> Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 22. Februar 2006 14:01
> An: fop-users@xmlgraphics.apache.org
> Betreff: Re: Page Numbers
> 
> 
> No, at least it's not possible in XSLT since FOP runs after 
> the XSLT stage and you stylesheet cannot know about page-numbers.
> 
> The FOP extension for Barcode4J, however, contains a special 
> feature that allows you to use the page number in a barcode. 
> That works because Barcode4J runs during FOP's layout 
> process. See the documentation here: 
> http://barcode4j.krysalis.org/fop-ext.html
> 
> On 22.02.2006 
> 11:45:18 Andre Groeneveld wrote:
> > Hi can anyone help me please.
> > 
> >  
> > 
> > Is there any way of storing the current page number in a variable?
> > 
> > The reason why I need to store the page number is that I 
> need to make 
> > a calculation with the page number and use the result for a barcode.
> 
> 
> 
> Jeremias Maerki
> 
> 
> -
> 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]



DataMatrix Barcode in PDFs with FOP

2005-10-21 Thread Alexander Schwartz
Hello FOP-Users,

I need to include DataMatrix Codes in PDFs and I wonder if someone has
experience with this. 

Do you know any libraries that provide this feature?

Barcode4J only supports 1D-Barcodes, DataMatrix is a 2D-Barcode. 

Thanks, 
Alexander. 
  
Alexander  Schwartz 
PLUS Finanzservice GmbH 
Otto-von-Guericke-Ring 15 
65205  Wiesbaden 
T.: 06122 - 999 906 
F.: 06122 - 999 44906 
[EMAIL PROTECTED] 
  
-- 
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone;  
please reply to this e-mail and highlight the error. 
  
Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. We 
advise that you understand and observe this lack of security when e-mailing us. 
  
Viruses: Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free. 
--