Re: a very humble request

2002-05-14 Thread fred redf

Hi Keiron and All,

Thanks for your response. I changed my way to another
solution involving a little java class wrapping
jeuclid's MathTransformer that i call thru my xsl
stylesheet with xalan java extension mechanism that
generates svg code directly inside fo code.
I seems to be ok.
Bye,
Fred.



--- Keiron Liddle [EMAIL PROTECTED] a écrit :  Hi
Fred,
 
 The extension that does the mml stuff is only in the
 development cvs. It
 is not part of (and won't work with) the maintain
 branch which is what
 you will need to use.
 Sorry can't be of more help.
 
 Also you would need to compile the extension and
 place the jar in the
 classpath to get it to work.
 
 Keiron.
 
 On Mon, 2002-05-13 at 17:37, fred redf wrote:
  Hi all,
  I'm currently working on pdf generation of
 (mostly)
  text, and (*a few*) equations. I usually wait for
  maintenance releases of fop, but this time, we
 really
  need jeuclid's extension. I've downloaded last cvs
  generated .tar.gz (xml-fop_20020513103339.tar.gz)
  compiled it (no prob). I got jeuclid source and
  compiled them (no prob). But i'm not able to run
 the
  fo+mml examples to pdf.
  Am I doing something wrong?
  Thanks a zillion times for your attention.
  Fred.
 
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: external-graphic size

2002-04-29 Thread fred redf

Hi all,

I had the same prob in my project. I made a little
java class (based on some code i found on the
internet) that calculate the actual width of my image.
I call that class inside my xsl (thru xalan java
extension). Then, according to some rules, i configure
width=Xcm inside external graphic tag.

Here is some example of my code :

in the header zone :

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:java=http://xml.apache.org/xslt/java;
exclude-result-prefixes=java



then in my xsl rule :

xsl:template
match=ressource[@type='image']|ressource[@type='schema']
fo:block space-before=0.5cm text-align=center
keep-together=always
xsl:variable name=imagetemp\images\xsl:value-of
select=@URIsrc//xsl:variable
!-- compute the width of my image... --
xsl:variable name=pWidth
select=java:com.scenari.papier.Largeur.hValeur($image)/
fo:table
fo:table-column column-width={$gLargeurPapier}cm/
fo:table-body
fo:table-row
fo:table-cell
fo:block
fo:external-graphic src={$image} 
keep-with-next=always width={$pWidth}cm/
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row keep-with-previous=always
fo:table-cell
fo:block font-family=Helvetica font-size=12pt
text-align=center space-after=0.1cm
keep-with-previous=always space-before=0.3cm
xsl:if test=@titre
Fig. xsl:number count=ressource[@type='image']
level=any format=1/ : xsl:value-of
select=@titre/
/xsl:if
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:block
/xsl:template

Hope this helps...
Fred.

--- Torsten Erler [EMAIL PROTECTED] a écrit :  Yes
I'm using this as temporarily solution to avoid
 program crashes, but
 even the image is scaled into the specified size,
 also if it has original
 size of e.g. 10x15 pixel. This produces a unusable
 chequered print-preview.
 
 Is there another way to force the scaling only if
 the image overflows the
 dimension of the page body area???
 
 P.S.: I've tried to overwrite AWTRenderers
 renderImageArea(ImageArea
 area)to scale the image before painting, but it
 seems to be the loop
 occures before on formatting the area tree (I'll
 debug this step by step, to
 find the precise position).
 
 ThanX Torsten
 
 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
 Sent: Montag, 29. April 2002 01:21
 To: [EMAIL PROTECTED]
 Subject: Re: external-graphic size
 
 
 Torsten Erler wrote:
  I've a problem with external graphics, which can
 be greater than the page
  size of the xsl-template. The properties
 max-height and max-width doesn't
  work (not implemented). The result is an infinite
 loop on rendering the
  (correctly) generated fo-file with the
 AWTRenderer to display the
 result.
  Is there a workaround for that or have I omit an
 important setting
 (possible
  in xsl) for a parent object.
 
 Try setting height and/or width on the
 fo:external-graphic
 element. If you specify both, the graphic may be
 stretched,
 of you specify only one, the aspect ratio is
 conserved.
 
 J.Pietschmann
 
 
 

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

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: pb with jpegs

2002-03-06 Thread fred redf

Thank you very much Sven. I'm now looking for some
massive solution to transform my hundreds of jpegs
If someone has an idea of a commandline/scriptable
tool
Thanks.
Fred.

--- Sven Kitschke [EMAIL PROTECTED] a écrit :  fred redf
wrote:
 
  Hi all,
  I have a prob with *some* jpeg images that are
  replaced by a black square inside the pdf. I
 looked
  for differences in photoshop, but i could not
 figure
  what is the difference. That problem did not
 occured
  with older
  versions of fop.
  Anyone has a clue?
  Thanks in advance,
  Fred.
 
 I have played around with this.
 After a simple open and save with irfanview
 this problem disappears. The resulting file
 is slightly different. The information dialog
 of irfanview did not report some differences
 (despite of the file length) to the old image.
 
 So far, i have no other idea than
 that jimi may have some problems with some
 information, encodings, compression ...
 provided/used in your jpeg.
 
 Ciao, Sven.
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




pb with jpegs

2002-03-05 Thread fred redf

Hi all,
I have a prob with *some* jpeg images that are
replaced by a black square inside the pdf. I looked
for differences in photoshop, but i could not figure
what is the difference. That problem did not occured
with older
versions of fop.
Anyone has a clue?
Thanks in advance,
Fred.

ps: has i could not send both images,i put them on my
website:
http://www.utc.fr/~fjacquem/fop/good.jpg
http://www.utc.fr/~fjacquem/fop/bad.jpg

and the resulting pdf:
http://www.utc.fr/~fjacquem/fop/Output.pdf



___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: pb with jpegs

2002-03-05 Thread fred redf

As far as i can see in photoshop, both images are
rgb/24bits/300dpi
Any better clue?
Thanks anyway Claes
Fred.


--- [EMAIL PROTECTED] a écrit :  
 I have no answer to your question but have a similar
 problem.
 Jpeg files encoded with RGB colors works all the
 time for me.
 Jpeg files encoded with CMYK colors however
 generates an exception in the
 engine.
 
 cheers
 
 Claes
 
 
 
 |-+---
 | |   fred redf   |
 | |   popincourt2000@|
 | |   yahoo.fr   |
 | |   |
 | |   05/03/2002 03:20|
 | |   PM  |
 | |   Please respond  |
 | |   to fop-dev  |
 | |   |
 |-+---
  

---|
   | 
 
 |
   |To:  [EMAIL PROTECTED]  
 
 |
   |cc:  (bcc: Claes Bergsten/NO/TJG)
 
 |
   |Subject: pb with jpegs   
 
 |
  

---|
 
 
 
 
 Hi all,
 I have a prob with *some* jpeg images that are
 replaced by a black square inside the pdf. I looked
 for differences in photoshop, but i could not figure
 what is the difference. That problem did not occured
 with older
 versions of fop.
 Anyone has a clue?
 Thanks in advance,
 Fred.
 
 ps: has i could not send both images,i put them on
 my
 website:
 http://www.utc.fr/~fjacquem/fop/good.jpg
 http://www.utc.fr/~fjacquem/fop/bad.jpg
 
 and the resulting pdf:
 http://www.utc.fr/~fjacquem/fop/Output.pdf
 
 
 

___
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
 en français !
 Yahoo! Mail : http://fr.mail.yahoo.com
 

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

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: FOP Interfaces

2002-03-01 Thread fred redf

Hi Jeremias, and all other peoples here,

I would like to know where an arbitrary event has
occured during fop rendering. Let me give you a short
example:
i produce a *big* pdf with fop that should include
another pdf that was produced in another way (i my
case, it was produced by distiller from a word
document). That document should be included after a
fo:table.../fo:table that is somewhere inside my
document.
Second example : i want to watermark some specific
pages according to the content that is on these pages.
For that purpose, i use iText.
So what i want is some kind of mechanism (for exemple
something like fox:page-number id=myId/) that
would enable me to get an Hashtable that contains the
page where this event has occured. After getting this
hashtable, i could run iText-based process to finish
my pdf. 
Is that more clear? Excuse me for my
not-that-good-english, i have also to admit that it
was not that clear in my head.
Thanks,

Fred.


 --- Jeremias Maerki [EMAIL PROTECTED] a
écrit :  Do you just want to know how many pages were
 rendered (See
 Driver.getResults().getPageCount()) or do you want
 to insert PDF pages
 of your own while FOP is rendering? Or something
 else, because I think I
 don't undertand, yet, what you want?
 
  I would *love* to be able to be able to get the
 page
  number where some event append (for example by
 stating
  fox:page-number/ in .fo source) cause it would
  greatly improve fop/itext interfacing. I
 personnaly
  use fop to render most of my content but i finish
 the
  work using itext (to watermark content, reorganize
  pages to produce booklets, insert some annexes
 written
  in pdf .. etc)
  Thanks a lot, whether you implement that or not!
 
 Cheers,
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Tel. +41 41 317 2020 - Fax +41 41 317 2029
 Internet http://www.outline.ch
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: FOP Interfaces

2002-03-01 Thread fred redf

Thanks Jeremias

--- Jeremias Maerki [EMAIL PROTECTED] a
écrit :  I get it now, thanks. I think that's an
interesting
 thing. Definitely,
 worth putting on the task list. I could use
 something like that, too.
 
  I would like to know where an arbitrary event has
  occured during fop rendering. Let me give you a
 short
  example:
  i produce a *big* pdf with fop that should include
  another pdf that was produced in another way (i my
  case, it was produced by distiller from a word
  document). That document should be included after
 a
  fo:table.../fo:table that is somewhere inside
 my
  document.
  Second example : i want to watermark some specific
  pages according to the content that is on these
 pages.
  For that purpose, i use iText.
  So what i want is some kind of mechanism (for
 exemple
  something like fox:page-number id=myId/) that
  would enable me to get an Hashtable that contains
 the
  page where this event has occured. After getting
 this
  hashtable, i could run iText-based process to
 finish
  my pdf. 
  Is that more clear? Excuse me for my
  not-that-good-english, i have also to admit that
 it
  was not that clear in my head.
 
 Cheers,
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Tel. +41 41 317 2020 - Fax +41 41 317 2029
 Internet http://www.outline.ch
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: FOP Interfaces

2002-02-28 Thread fred redf

I would *love* to be able to be able to get the page
number where some event append (for example by stating
fox:page-number/ in .fo source) cause it would
greatly improve fop/itext interfacing. I personnaly
use fop to render most of my content but i finish the
work using itext (to watermark content, reorganize
pages to produce booklets, insert some annexes written
in pdf .. etc)
Thanks a lot, whether you implement that or not!
Fred.



--- Joerg Pietschmann [EMAIL PROTECTED] a
écrit :  Jeremias Maerki [EMAIL PROTECTED]
wrote:
  Output from FOP:
  - Generation statistics: Number of pages total
 What about:
  

total=((Integer)processor.getAttribute(fop.totalNumberOfPages)).intValue()
 (Returns 0 before rendering, i suppose. Or is
 throwing an exception
 better?)
 
  Number of pages of each page-sequence
 Uh, perhaps
  

pgsq2=((Integer)((Vector)processor.getAttribute(fop.pagesInSequence)).get(2)).intValue()
 or (less recommended but may get more resonance)
  

pgsq2=((Integer)processor.getAttribute(fop.pagesInSequence.2)).intValue()
 (note the small differences)
 
  page-master used for each page (could be used to
  control the paper bin to get paper from, important
 for me in
  conjunction with PS Renderer).
 During rendering or after the rendering is complete?
 
 Regards
 J.Pietschmann
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: CMYK Images - bug? (Again)

2002-02-26 Thread fred redf

i have a prob with *some* jpeg images cause they are
replaced by a black rectangle in the pdf doc. Most
jpeg shows correctly.
How can i verify that my jpegs are not cmyk-ed?
Fred.



--- [EMAIL PROTECTED] a écrit :  Hi,
 
 I need some feedback on this.
 
 Is there a bug with external-graphics containing
 CMYK colors?
 I have tried several image formats now, and if I
 save them in RGB-mode they
 work fine
 but if I save the same image in CMYK-mode FOP gives
 following error:
 Error in XObject : Error while loading image
 file:/D:/CVS/BC/webApplication/images/tj2.jpg :
 class java.lang.Exception -
 Image error
 
 (I use Photoshop to save pictures)
 
 Cheers
 
 Claes Bergsten
 
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: CMYK Images - bug? (Again)

2002-02-26 Thread fred redf

Thanks man, but i'm looking for a scriptable solution
cause we're working with *big* amounts of content...
Thanks anyway
Fred.

--- [EMAIL PROTECTED] a écrit :  
 Well opening them in Photoshop (if you have the
 possibility) and look at
 the Image-Mode
 There youll see which mode the picture is in: RGB,
 CMYK, Grayscale etc.
 
 Claes
 
 
 
 |-+---
 | |   fred redf   |
 | |   popincourt2000@|
 | |   yahoo.fr   |
 | |   |
 | |   26/02/2002 03:00|
 | |   PM  |
 | |   Please respond  |
 | |   to fop-dev  |
 | |   |
 |-+---
  

---|
   | 
 
 |
   |To:  [EMAIL PROTECTED]  
 
 |
   |cc:  (bcc: Claes Bergsten/NO/TJG)
 
 |
   |Subject: Re: CMYK Images - bug? (Again)  
 
 |
  

---|
 
 
 
 
 i have a prob with *some* jpeg images cause they are
 replaced by a black rectangle in the pdf doc. Most
 jpeg shows correctly.
 How can i verify that my jpegs are not cmyk-ed?
 Fred.
 
 
 
 --- [EMAIL PROTECTED] a écrit :  Hi,
 
  I need some feedback on this.
 
  Is there a bug with external-graphics containing
  CMYK colors?
  I have tried several image formats now, and if I
  save them in RGB-mode they
  work fine
  but if I save the same image in CMYK-mode FOP
 gives
  following error:
  Error in XObject : Error while loading image
  file:/D:/CVS/BC/webApplication/images/tj2.jpg :
  class java.lang.Exception -
  Image error
 
  (I use Photoshop to save pictures)
 
  Cheers
 
  Claes Bergsten
 
 
 
 

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

___
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
 en français !
 Yahoo! Mail : http://fr.mail.yahoo.com
 

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

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: CMYK Images - bug? (Again)

2002-02-26 Thread fred redf

Merci Guillaume, je jette un oeil.

--- Guillaume Laforge [EMAIL PROTECTED] a écrit :
 You should have a look at a JPEG decoder like Sun's
 JIMI or Sun's JAI (Java Advanced Imaging API).
 You might find some usefull methods regarding the
 color model used by a JPEG image file.
 Wandering around  JAI's JPEGImageDecoder, it extends
 ImageDecoderImpl.
 There's a method called decodeAsRenderedImage(),
 which returns a RenderedImage
 Then you can call
 getColorModel().getColorSpace().getName() or
 getType() on this RenderedImage
 and you should have an int representing the color
 model (CMYK, RGB, etc...)
 I havent tested it myself and I'm not an expert in
 JAI, but I guess it should work.
 Hope it helps !
 
 Guillaume
   - Original Message - 
   From: fred redf 
   To: [EMAIL PROTECTED] 
   Sent: Tuesday, February 26, 2002 3:07 PM
   Subject: Re: CMYK Images - bug? (Again)
 
 
   Thanks man, but i'm looking for a scriptable
 solution
   cause we're working with *big* amounts of
 content...
   Thanks anyway
   Fred.
 
   --- [EMAIL PROTECTED] a écrit :  
Well opening them in Photoshop (if you have the
possibility) and look at
the Image-Mode
There youll see which mode the picture is in:
 RGB,
CMYK, Grayscale etc.

Claes



|-+---
| |   fred redf   |
| |   popincourt2000@|
| |   yahoo.fr   |
| |   |
| |   26/02/2002 03:00|
| |   PM  |
| |   Please respond  |
| |   to fop-dev  |
| |   |
|-+---
 
   
  

---|
  | 



|
  |To:  [EMAIL PROTECTED]  



|
  |cc:  (bcc: Claes Bergsten/NO/TJG)



|
  |Subject: Re: CMYK Images - bug?
 (Again)  


|
 
   
  

---|




i have a prob with *some* jpeg images cause they
 are
replaced by a black rectangle in the pdf doc.
 Most
jpeg shows correctly.
How can i verify that my jpegs are not cmyk-ed?
Fred.



--- [EMAIL PROTECTED] a écrit :  Hi,

 I need some feedback on this.

 Is there a bug with external-graphics
 containing
 CMYK colors?
 I have tried several image formats now, and if
 I
 save them in RGB-mode they
 work fine
 but if I save the same image in CMYK-mode FOP
gives
 following error:
 Error in XObject : Error while loading image
 file:/D:/CVS/BC/webApplication/images/tj2.jpg
 :
 class java.lang.Exception -
 Image error

 (I use Photoshop to save pictures)

 Cheers

 Claes Bergsten




   
  

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


   
  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
 et
en français !
Yahoo! Mail : http://fr.mail.yahoo.com

   
  

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






   
  

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

___
   Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
 et en français !
   Yahoo! Mail : http://fr.mail.yahoo.com
 
  

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: I have problem with FOP - running

2002-02-26 Thread fred redf

ant.jar is missing in your classpath.
Fred.

--- Carlos Daniel Schafer
[EMAIL PROTECTED] a écrit : 
Hello
 
 I take that libraries and put into c:\java\lib, I
 working witch NT 2000.
 Please, I have problems with FOP when running and
 recieved this message 
 
 Exception in thread main
 java.lang.NoClassDefFoundError:
 org/apache/tools/ant/Main
 
 I don't now this message, please help me.
 
 Sorry, my English is very bad.
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Tool for generating bar graphs with Java

2002-02-25 Thread fred redf

Hi,
What do you want exactly to do? If you want to draw
that kind of graph in a pdf doc, you should have a
look at svg in fop.
If you want to generate xml files describing datas,
you can have a look at staroffice which generates xml
files that you can clean with an xsl.
Hope this helps,

Fred.

--- Roland [EMAIL PROTECTED] a écrit :  Hello,
 does anyone here know of a good tool to generate bar
 graphs, line graphs, 
 pie charts, scatter graphs with Java?
 
 Thanks, Roland
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Tool for generating bar graphs with Java

2002-02-25 Thread fred redf

Why don't you generate svg instead of jpeg?

--- [EMAIL PROTECTED] a écrit :  
 It's pretty easy to write your own in Java - took
 about a day for pie and
 bar.  We use the JPEG encoder to create a physical
 image file.  The only
 issue we are having is the quality of the JPEG
 images when rendered in
 Adobe.
 
 Let me know if you want some code snippets.
 
 -Lou
 
 
 
 
 
 Roland [EMAIL PROTECTED] on 02/25/2002
 11:02:51
 
 Please respond to [EMAIL PROTECTED]
 
 To:   [EMAIL PROTECTED]
 cc:
 
 Subject:  Tool for generating bar graphs with Java
 
 Hello,
 does anyone here know of a good tool to generate bar
 graphs, line graphs,
 pie charts, scatter graphs with Java?
 
 Thanks, Roland
 
 

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

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: getting the length in cm,mm or pt of a string

2002-02-22 Thread fred redf

Hi all,

 --- Phil Harling [EMAIL PROTECTED] a écrit : 
Nick Winger:
  is it possible to calculate, for a given font (
 for example: arial ), the
  length of a string in cm, mm or pt
  ( the length which it will have in the pdf file
 content )
 
 
 
 Yes.
 
 1) Approximate it using the average width of a
 character in a font * 
 string length.
 
 2) Write a Java class and call it from an XSL
 transform passing in the 
 string - and then calculate the length using the
 font classes/methods in 
 FOP. Be careful of possible kerning.

What means 'kerning' exactly?


 
 
 
 
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: Page sequence

2002-02-19 Thread fred redf

Hi Gilles

Just put a break-after=page in the last block
intended to be inside each page sequence.
Salut.
Fred.


--- Gilles Beaugeais [EMAIL PROTECTED] a écrit :
 hello
 
 I am using fop 0.20.3.
 
 I have to generate 3 TOCs (table of contents, list 
 of figures, list of tables) and a blank page at the
 end 
 of global 3 TOCs if the 3 TOCs total page count is
 odd.
 
 The problem is that I have to change header
 depending 
 on the TOC.
 
 I have defined 3
 'fo:repeatable-page-master-alternatives' in 
 a 'fo:page-sequence-master' but I don't know how to
 skip 
 from a 'fo:repeatable-page-master-alternatives' to
 another in 
 'fo:flow'.
 The fo:block break-before=page instruction don't
 make 
 changing the current
 'fo:repeatable-page-master-alternatives'
 
 Can someone help ?
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




black images

2002-02-18 Thread fred redf

Hi all,
I don't know if it is a bug, so i don't want to
overload bugzilla for the moment. My prob is : I'm
inserting jpg images in my pdf content, and sometimes,
the picture is replaced by a black box whose
dimensions are the dimensions of my image. Obviously,
those images are ok in my html browser...
Any clue?
Thanks in advance,
Fred.


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: static table-footer height ?

2002-02-04 Thread fred redf

Hi Nick,

I have a little dirty workaround for this:
-declare a page sequence that will contain your big
(ie multipage) table.

-put your table head in a static flow

-put the real table content xsl-body flow

Hope this helps.
Fred. 


--- Nick Winger [EMAIL PROTECTED] a écrit : 
hi !
 
 
 is it possible to have a static table-footer height
 ?
 
 i have text in the table-body, and images in the
 table-footer, now sometimes
 there is less text
 and sometimes there is a smaller image, but i want
 the height of the table
 footer always at
 half of the table, because there are many pages, and
 the should look the
 same ( have the same
 break for the image in the table-footer)
 so i would need a static table-footer height...
 
 is that possible ?
 
 
 thanks and greetings
 
 
 Nick Winger
 
 (Software-Developer)
 
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

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




Re: When using the PNG file, Java hung-up.

2002-02-03 Thread fred redf

Hi,
That syntax should work better.
Fred.
 
  fo:block
   fo:external-graphic
 src=../../graphics/test.jpg/
 /fo:block


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

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




RE: Why do you use FOP instead of ...

2002-02-01 Thread fred redf

Hi Roland,

We had the very same prob cause the xsl that translate
from our XML content to FO went quite messy as we made
all modifications needed to paper export (we're
usually building 50-200 pages in our pdfs, with many
pictures, tables cause it's made of courses contents).
So we made some kind of pre-formatting in a
xmlsublanguage of our own then we actually turn
everything to fo). That's not a big prob in our
context since pdf building is almost an offline task,
made by teachers.
Cheers,
Fred.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

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




RE: Why do you use FOP instead of ...

2002-02-01 Thread fred redf

Forgot to say that our fo formatting would be ready in
10 years when we'll have those *good* voice
synthetizer
that are supposed to *print* our fo code according to
the XSL-FO specs. ;)
Fred.

 
 --- Ralph LaChance [EMAIL PROTECTED] a
écrit :  At 04:06 PM 2/1/02 -0200, you wrote:
 I will nail down the weaknesses of the XML-PDF
 approach:
 
 1. XSL:FO is a very complicated and messy language
 2. XSLT is also kinda complicated to use, at least
 if you have to do 
 complicated formatting...
 
 Sometimes it seems folks assume that FO is synomous
 with pdf,
 but for some of us, the point of using FO is not to
 create pdf output
 but to format and send xml data directly to a
 printer.   ;-)
 
 
 
  ' Best,
  -Ralph LaChance
 
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

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




Re: Barcode-line on a page....

2002-01-30 Thread fred redf

Hi,

Maybe you should have a look at iText java library. I
use it myself to add some static content on every page
of a document after fop processing.

Dref.


--- [EMAIL PROTECTED] a écrit :  
 thanks...
 
 but one solution shows me many more problems... :(
 My margins must be set to 0 now (leftmargin) and
 that screws up my whote
 document.
 anyway... thank you
 
 
 
 Jochen Maes
 EDP departement
 Programmeur
 
 KBC-Securities
 Havenlaan 16
 1080 Brussel
 
 Tel : 02/429.96.81
 Fax : 02/429.17.48
 E-mail : [EMAIL PROTECTED]
 

**
 
 This message is for the named person's use only. It
 may contain
 confidential, proprietary or legally privileged
 information. You must not,
 directly or indirectly, use, disclose, distribute,
 print, or copy any part
 of this message if you are not the intended
 recipient. KBC Securities
 reserves the right to monitor all e-mail
 communications through its
 networks. Any views expressed in this message are
 those of the individual
 sender, except where the message states otherwise
 and the sender is
 authorised to state them to be the views of any such
 entity.

**
 
 
 
 

 Edmond Pugnale  
 

 edmond.pugnale@fluTo:  
   [EMAIL PROTECTED]

 xmedia.fr cc:  
 

 Sent by:  
 Subject: Re: Barcode-line on a page 
  
 [EMAIL PROTECTED] 
 

 pes.fr  
 

 
 

 
 

 29-01-02 09:00 PM   
 

 Please respond to   
 

 fop-dev 
 

 
 

 
 

 
 
 
 
 [EMAIL PROTECTED] wrote:
 
  Now i need to be able to say (but then in FOP
 language)
  print a line here: 14.2(x from), 220(y from), 51(x
 to), 220(y to) the
 line
  must be 1 pt thick or 2 points whatever...
 
 If you want to draw horizontal or vertical lines,
 you can add flat block-containers inside appropriate
 static-content element :
 
   fo:static-content flow-name=first-before
 ...
 fo:block-container left=(x from)
 top=(y from)
width=(y width)
height=0
 position=absolute
 border-after-width=2pt
   
 border-after-style=solid/
 ...
   /fo:static-content
 
 
 Ed
 

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

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

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




Re: Barcode-line on a page....

2002-01-30 Thread fred redf

iText does not allow you to decompile a pdf but you
can copy the whole content of one page of a
preexisting pdf to another then add your static
content. 
Dref.


--- [EMAIL PROTECTED] a écrit :  
 iTextJava
 
 
 hmm if it reads/writes PDF it can be interesting
 thanks...
 
 
 Jochen Maes
 EDP departement
 Programmeur
 
 KBC-Securities
 Havenlaan 16
 1080 Brussel
 
 Tel : 02/429.96.81
 Fax : 02/429.17.48
 E-mail : [EMAIL PROTECTED]
 

**
 
 This message is for the named person's use only. It
 may contain
 confidential, proprietary or legally privileged
 information. You must not,
 directly or indirectly, use, disclose, distribute,
 print, or copy any part
 of this message if you are not the intended
 recipient. KBC Securities
 reserves the right to monitor all e-mail
 communications through its
 networks. Any views expressed in this message are
 those of the individual
 sender, except where the message states otherwise
 and the sender is
 authorised to state them to be the views of any such
 entity.

**
 
 

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

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

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