JFOR for fo:external-graphic

2005-03-23 Thread [EMAIL PROTECTED]

I use jfor but does not suppport content-height and content-width for external 
image.
My problem is the on linux the image rendered are bigger than normal...on 
window that 's not happen...
U know any alternative way for setting size for fo:external-graphic?






6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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



encoding space in xsl:fo

2005-03-22 Thread [EMAIL PROTECTED]
Hi all
I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but on a 
window system   is rendered as a space ; on unix system    is rendered as A^ 
(unique character)
It look like the mapping is dependent by system.
Possible?





Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it



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



Re: encoding space in xsl:fo

2005-03-22 Thread [EMAIL PROTECTED]
I said that   is mapped as white space...on window and on linux is mapped as 
A^...
Any idea?
-- Initial Header ---

From  : David Causse [EMAIL PROTECTED]
To  : fop-users@xmlgraphics.apache.org
Cc  :
Date  : Tue, 22 Mar 2005 18:18:45 +0100
Subject : Re: encoding space in xsl:fo

 [EMAIL PROTECTED] wrote:

 Hi all
 I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but 
 on a window system   is rendered as a space ; on unix systemis rendered 
 as A^ (unique character)
 It look like the mapping is dependent by system.
 Possible?
 
 
 If you tried to print your special character in this mail it doesn't
 worked for me (I see a blank), could you
 explain which character is it and verify that it is really supported by
 ISO-8859-1 (try man iso-8859-1 on
 some sytems this manual page exists).

 Good luck,

 David.
 

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

 




Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it



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



Re: encoding space in xsl:fo

2005-03-22 Thread [EMAIL PROTECTED]
Yes white space...is not well mapped in linux...
  # 160 ; is coded as white space on window while is coded as a letter with a 
chapot above on linux.
Why?
I need absolutely help!



-- Initial Header ---

From  : David Causse [EMAIL PROTECTED]
To  : fop-users@xmlgraphics.apache.org
Cc  :
Date  : Tue, 22 Mar 2005 18:41:33 +0100
Subject : Re: encoding space in xsl:fo

 You want to print this char below?
Oct   Dec   Hex   Char   Description

240   160   A0   NO-BREAK SPACE

 I think you should explain what you want to do,
 I read in your mail:
 I said that   is mapped...
 So I can't understand what you want...
 If I read the source of this mail I can see your char is coded like this:
 =A0
 It displays a white space on my mail user agent (thunderbird/windows).

 David.

 [EMAIL PROTECTED] wrote:

 I said that   is mapped as white space...on window and on linux is mapped as 
 A^...
 Any idea?
 -- Initial Header ---
 
 From  : David Causse [EMAIL PROTECTED]
 To  : fop-users@xmlgraphics.apache.org
 Cc  :
 Date  : Tue, 22 Mar 2005 18:18:45 +0100
 Subject : Re: encoding space in xsl:fo
 
 
 
 [EMAIL PROTECTED] wrote:
 
 

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

 




Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it



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



Re: make table border visible

2005-03-14 Thread [EMAIL PROTECTED]
I suspect that is an attribute not well setted in xsl-foMy question was how 
to make solid a table cell border?
I do not think is a JFOR problem and so for xsl-fo
Help




-- Initial Header ---

From  : [EMAIL PROTECTED]
To  : fop-users@xmlgraphics.apache.org
Cc  :
Date  : Mon, 14 Mar 2005 10:11:16 -0600
Subject : Re: make table border visible

 Have you checked the RTF output? Does it contain the correct elements to
 produce the border? If so, then this would be a JFOR problem. If not, then
 it's a FOP problem. Given that you see the borders in a viewing
 application but not when printed, I am inclined to suspect that the
 problem comes from whatever you use to print.

 Jay Bryant
 Bryant Communication Services
 (presently consulting at Synergistic Solution Technologies)

 


 [EMAIL PROTECTED] [EMAIL PROTECTED]
 03/14/2005 10:04 AM
 Please respond to
 fop-users@xmlgraphics.apache.org


 To
 fop-users fop-users@xmlgraphics.apache.org
 cc

 Subject
 Re: make table border visible






 I should produce an RTF using JFOR and xsl-fo...so my output is
 xsl:output encoding=ISO-8859-1/
 but when I set the fo:table-cell
 border=0.75pt solid black display-align=after
 number-columns-spanned=8 padding-left=3.5pt padding-right=3.5pt
 nothing is visible when I print.
 It is visible just on screen.
 Help
 -- Initial Header ---

 From  : [EMAIL PROTECTED]
 To  : fop-users@xmlgraphics.apache.org
 Cc  :
 Date  : Mon, 14 Mar 2005 10:00:10 -0600
 Subject : Re: make table border visible

  What kind of output are you producing? What are you using to view it?
 
  Jay Bryant
  Bryant Communication Services
  (presently consulting at Synergistic Solution Technologies)
 
 
 
  
  [EMAIL PROTECTED] [EMAIL PROTECTED]
  03/14/2005 09:56 AM
  Please respond to
  fop-users@xmlgraphics.apache.org
 
 
  To
  fop-users fop-users@xmlgraphics.apache.org
  cc
  
  Subject
  make table border visible
 
 
 
 
 
 
 
  Hi all.I'm rendering with xsl-fo a table but all the cell borders are
  visible just on the screen and not when I print my document.

  Any usefull attribute for rendering a solid visible,printable table

  border?
  Regards Giovanni Di Lembo
 
  
 
 
  
  Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
  Scegli Libero Adsl Flat senza limiti su http://www.libero.it
 
 
 
  -
  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]
 
 



 
 Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
 Scegli Libero Adsl Flat senza limiti su http://www.libero.it



 -
 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]

 




Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it



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



RE: make table border visible

2005-03-14 Thread [EMAIL PROTECTED]
Actually if I use border-style or border-color  the border disappear 
somewhere..Is there not a general border attribute for the fo:table tag?


-- Initial Header ---

From  : Riz Virk [EMAIL PROTECTED]
To  : fop-users@xmlgraphics.apache.org
Cc  :
Date  : Mon, 14 Mar 2005 11:19:29 -0500
Subject : RE: make table border visible

 Hi guys,

 Most likely you are seeing the pseudo border that word shows on screen to 
 tell you where cells start and end, rather than an actual border.

 Assuming you are using .71 of jfor, i don't think it supports the compound fo 
 property border (your fo says: border=0.75pt solid black) .  Rather, you 
 will have to use border-color, or border-style, or border-xxx-color, 
 border-xxx-style where xxx is one of top, left, right, bottom.


 Thanks
 Riz
  

 
 Rizwan Virk
 CTO
 CambridgeDocs
 [EMAIL PROTECTED]
 personal: [EMAIL PROTECTED]
  

 

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Mon 3/14/2005 11:15 AM
 To: fop-users
 Subject: Re: make table border visible



 I suspect that is an attribute not well setted in xsl-foMy question was 
 how to make solid a table cell border?
 I do not think is a JFOR problem and so for xsl-fo
 Help




 -- Initial Header ---

 From  : [EMAIL PROTECTED]
 To  : fop-users@xmlgraphics.apache.org
 Cc  :
 Date  : Mon, 14 Mar 2005 10:11:16 -0600
 Subject : Re: make table border visible

  Have you checked the RTF output? Does it contain the correct elements to
  produce the border? If so, then this would be a JFOR problem. If not, then
  it's a FOP problem. Given that you see the borders in a viewing
  application but not when printed, I am inclined to suspect that the
  problem comes from whatever you use to print.
 
  Jay Bryant
  Bryant Communication Services
  (presently consulting at Synergistic Solution Technologies)
 
 

 
 
  [EMAIL PROTECTED] [EMAIL PROTECTED]
  03/14/2005 10:04 AM
  Please respond to
  fop-users@xmlgraphics.apache.org
 
 
  To

  fop-users fop-users@xmlgraphics.apache.org
  cc
 
  Subject
  Re: make table border visible
 
 
 
 
 
 
  I should produce an RTF using JFOR and xsl-fo...so my output is
  xsl:output encoding=ISO-8859-1/
  but when I set the fo:table-cell
  border=0.75pt solid black display-align=after
  number-columns-spanned=8 padding-left=3.5pt padding-right=3.5pt
  nothing is visible when I print.
  It is visible just on screen.
  Help
  -- Initial Header ---
 
  From  : [EMAIL PROTECTED]
  To  : fop-users@xmlgraphics.apache.org
  Cc  :
  Date  : Mon, 14 Mar 2005 10:00:10 -0600
  Subject : Re: make table border visible
 
   What kind of output are you producing? What are you using to view it?

  
   Jay Bryant
   Bryant Communication Services
   (presently consulting at Synergistic Solution Technologies)
  
  
  
  

   [EMAIL PROTECTED] [EMAIL PROTECTED]
   03/14/2005 09:56 AM
   Please respond to
   fop-users@xmlgraphics.apache.org
  
  
   To
   fop-users fop-users@xmlgraphics.apache.org
   cc
  

   Subject
   make table border visible
  
  
  
  
 

  
  
   Hi all.I'm rendering with xsl-fo a table but all the cell borders are
   visible just on the screen and not when I print my document.
 
   Any usefull attribute for rendering a solid visible,printable table
 
   border?
   Regards Giovanni Di Lembo
  
  

  
  
   
   Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
   Scegli Libero Adsl Flat senza limiti su http://www.libero.it
  
  
  
   -
   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]
  
  
 
 
 
  
  Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
  Scegli Libero Adsl Flat senza limiti su http://www.libero.it
 
 
 
  -
  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]
 
 



 
 Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
 Scegli Libero Adsl Flat senza limiti su http://www.libero.it



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



 




Navighi

produce RTF with FOP

2005-03-11 Thread [EMAIL PROTECTED]
Anyone has an idea how to generate RTF with FOP.
Is XSL-FO the proper namespace for creating RTF?

Regards




6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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



Re: produce RTF with FOP

2005-03-11 Thread [EMAIL PROTECTED]
Do u know where to find usefull examples or tutorial for using jfor?
www.jfor.org is not so well done.
Regards

-- Initial Header ---


From  : Jeremias Maerki [EMAIL PROTECTED]
To  : [EMAIL PROTECTED]
Cc  :
Date  : Fri, 11 Mar 2005 11:17:10 +0100
Subject : Re: produce RTF with FOP

 XSL-FO is one way to create RTF. FOP is capable of converting XSL-FO
 into a number of formats (PDF, PS, PCL etc.). FOP 0.20.5 does not
 support RTF output. You can, however, use JFOR to create RTF from XSL-FO
 or if you are brave you can fetch the FOP source code from CVS HEAD
 where JFOR was merged in. But the latter code is probably not ready for
 productive use.

 On 11.03.2005 10:53:19 [EMAIL PROTECTED] wrote:
  Anyone has an idea how to generate RTF with FOP.
  Is XSL-FO the proper namespace for creating RTF?



 Jeremias Maerki


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

 




6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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



How to handle special characters?

2005-03-09 Thread [EMAIL PROTECTED]
Hi, (B (B (BI need to display in a pdf file some text that contains different type (Bof characters: some are ascii type but other are special ones like the (B'star' or 'square' characters. I understand from what I have read that (Bthose special characters are not available in the default Helvetica or (BCourier base font and that I need to use the ZapfDingbats font. (B (B (BSo what I need to achieve is transform the following XML content: (B (B (B"Some text (B$B!z(B More (Btext" (B (B (BInto: (B (B (Bfo:inline font-family="Helvetica"> Some text  fo:inline (Bfont-family="ZapfDingbats">$B!z(B/fo:inline> (BMore text /fo:inline> (B (B (B (BHow can this be done using XSL to create the proper FO document (Bknowing that I don't know in advance what the text to translate looks (Blike and how many 'special' characters it contains (ex (B'asdf$B!z(Bas$B"#(Bdf$B!z(Bas$B"%(Bd$B!|"!(Bfasd$B!z(B') (B (B (BThanks for any tips! (B (B (B (BPatrick

Re: How to handle special characters?

2005-03-09 Thread [EMAIL PROTECTED]
Hi,
MS ARIAL UNICODE does not seem to be part of the base 14 pdf fonts. I 
really want to use the default fonts so that I don't have to embed 
special fonts in my pdf documents. Is there a way to do this?

Thanks,
Patrick
On 9 mars 05, at 16:32, [EMAIL PROTECTED] wrote:
I think MS ARIAL UNICODE font has tons of fonts which cover a lot of 
character sets including special ones. Try using that font set..

Manoj


-[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: 03/09/2005 01:21AM
Subject: How to handle special characters?
Hi,
I need to display in a pdf file some text that contains different type
of characters: some are ascii type but other are special ones like the
'star' or 'square' characters. I understand from what I have read that
those special characters are not available in the default Helvetica or
Courier base font and that I need to use the ZapfDingbats font.
So what I need to achieve is transform the following XML content:
Some text ? More text
Into:
fo:inline font-family=Helvetica Some text fo:inline
 font-family=ZapfDingbats?/fo:inline More text /fo:inline
How can this be done using XSL to create the proper FO document knowing
that I don't know in advance what the text to translate looks like and
how many 'special' characters it contains (ex 
'asdf?asdf?asd??fasd?')

Thanks for any tips!
Patrick  
- 
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: How to handle special characters?

2005-03-09 Thread [EMAIL PROTECTED]
Hi,
This is not really what I am trying to achieve. I know that I can  
handle special characters using the ZapfDingbats font. However what I  
don't know to do is parse a text content to encapsulate fo:inline  
element each time such a special character is found.

So tranforming:
Some text  More text
To:
fo:inline font-family=Helvetica Some text  fo:inline  
font-family=ZapfDingbats/fo:inline More text /fo:inline

Patrick
On 9 mars 05, at 16:41, Jeremias Maerki wrote:
Lots of examples in the distribution, for example:
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo? 
rev=1.3view=markup

...and in the documentation:
http://xml.apache.org/fop/fo.html#xml-special-chars
On 09.03.2005 10:21:11 [EMAIL PROTECTED] wrote:
Hi,
I need to display in a pdf file some text that contains different type
of characters: some are ascii type but other are special ones like the
'star' or 'square' characters. I understand from what I have read that
those special characters are not available in the default Helvetica or
Courier base font and that I need to use the ZapfDingbats font.
So what I need to achieve is transform the following XML content:
Some text  More text
Into:
fo:inline font-family=Helvetica Some text  fo:inline
font-family=ZapfDingbats/fo:inline More text /fo:inline
How can this be done using XSL to create the proper FO document  
knowing
that I don't know in advance what the text to translate looks like and
how many 'special' characters it contains (ex  
'asdfasdfasdfasd')

Thanks for any tips!
Patrick

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]


Re: How to handle special characters?

2005-03-09 Thread [EMAIL PROTECTED]
Ok so I think the only way out it to pre process my xml file to mark 
special characters so that I can them easily find them in my xsl 
document. Could another option be to find a font that contains all 
unicode characters? How difficult is it to embed a special font that 
would work both on Mac and PC? Do you have any pointers on how to do 
this?

Thanks,
Patrick
On 9 mars 05, at 17:01, Jeremias Maerki wrote:
Oops, sorry. Hmm, you've got a problem there. That's actually something
that would (in theory) be handled like this:
fo:inline font-family=Helvetica, ZapfDingbatsSome text  More
text/fo:inline
FOP should (again in theory) automatically switch to ZapfDingbats if
Helvetica doesn't contain a character. The problem is that FOP doesn't
do that, yet.
Working around this in XSLT is next to impossible (I think), which
leaves a special preprocessor that inserts special fo:inlines as
necessary but in this case you could just as well try to implement that
directly in FOP. It'll not be so simple.
fx type=head-scratching/
On 09.03.2005 16:49:19 [EMAIL PROTECTED] wrote:
Hi,
This is not really what I am trying to achieve. I know that I can
handle special characters using the ZapfDingbats font. However what I
don't know to do is parse a text content to encapsulate fo:inline
element each time such a special character is found.
So tranforming:
Some text  More text
To:
fo:inline font-family=Helvetica Some text  fo:inline
font-family=ZapfDingbats/fo:inline More text /fo:inline
Patrick
On 9 mars 05, at 16:41, Jeremias Maerki wrote:
Lots of examples in the distribution, for example:
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo?
rev=1.3view=markup
...and in the documentation:
http://xml.apache.org/fop/fo.html#xml-special-chars
On 09.03.2005 10:21:11 [EMAIL PROTECTED] wrote:
Hi,
I need to display in a pdf file some text that contains different 
type
of characters: some are ascii type but other are special ones like 
the
'star' or 'square' characters. I understand from what I have read 
that
those special characters are not available in the default Helvetica 
or
Courier base font and that I need to use the ZapfDingbats font.

So what I need to achieve is transform the following XML content:
Some text  More text
Into:
fo:inline font-family=Helvetica Some text  fo:inline
font-family=ZapfDingbats/fo:inline More text /fo:inline
How can this be done using XSL to create the proper FO document
knowing
that I don't know in advance what the text to translate looks like 
and
how many 'special' characters it contains (ex
'asdfasdfasdfasd')

Thanks for any tips!
Patrick

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]

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]


Re: How to handle special characters?

2005-03-09 Thread [EMAIL PROTECTED]
Pascal,
That is a great trick, thanks!
Patrick
On 9 mars 05, at 18:02, Pascal Sancho wrote:
Hi,
Sometime ago, I've tried this code (this applies font-familly='Symbol'  
when needed)

xsl:template match=text()
xsl:call-template name=testCaractres
xsl:with-param name=texte select=./
/xsl:call-template
/xsl:template
xsl:template name=testCaractres
	xsl:param name=texte/
	xsl:variable  
name=expression#x0391;#x0392;#x0393;#x0394;#x0395;#x0396; 
#x0397;#x0398;#x0399;#x039A;#x039B;#x039C;#x039D;#x039E; 
#x039F;#x03A0;#x03A1;#x03A3;#x03A4;#x03A5;#x03A6;#x03A7; 
#x03A8;#x03A9;#x03B1;#x03B2;#x03B3;#x03B4;#x03B5;#x03B6; 
#x03B7;#x03B8;#x03B9;#x03BA;#x03BB;#x03BC;#x03BD;#x03BE; 
#x03BF;#x03C0;#x03C1;#x03C2;#x03C3;#x03C4;#x03C5;#x03C6; 
#x03C7;#x03C8;#x03C9;#x03D1;#x03D2;#x03D5;#x03D6;/xsl: 
variable
	xsl:variable name=texteTest  
select=translate($texte,$expression,'#x0391;#x0391;#x0391;#x0391; 
#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391; 
#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391; 
#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391; 
#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391; 
#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391; 
#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391; 
#x0391;')/
	xsl:choose
		xsl:when test=contains($texteTest,'#x0391;')
			xsl:variable name=texteAvant  
select=substring-before($texteTest,'#x0391;')/
			xsl:variable name=positionCar  
select=string-length($texteAvant)+1/
xsl:value-of select=$texteAvant/fo:inline  
font-weight=normal font-family=Symbolxsl:value-of
	select=substring($texte,$positionCar,1)//fo:inlinexsl:call- 
template
	name=testCaractres
	xsl:with-param name=texte  
select=substring($texte,$positionCar+1)/
/xsl:call-template
		/xsl:when
		xsl:otherwisexsl:value-of select=$texte//xsl:otherwise
	/xsl:choose
/xsl:template

Pascal

-Message d'origine-
De : Jeremias Maerki [mailto:[EMAIL PROTECTED]
Envoy : mercredi 9 mars 2005 17:17
On 09.03.2005 17:07:21 [EMAIL PROTECTED] wrote:
Ok so I think the only way out it to pre process my xml
file to mark
special characters so that I can them easily find them in my xsl
document.
Good idea if that's possible.
Could another option be to find a font that contains all unicode
characters?
Sure, if such a beast exists.
How difficult is it to embed a special font that would work both on
Mac and PC? Do you have any pointers on how to do this?
Simply get a PC-compatible font. It should also work on the
Mac since FOP doesn't use the Mac's font system in case of
PDFs. If you have such a font simply follow the instruction
for custom fonts. HTH
Thanks,
Patrick
On 9 mars 05, at 17:01, Jeremias Maerki wrote:
Oops, sorry. Hmm, you've got a problem there. That's actually
something that would (in theory) be handled like this:
fo:inline font-family=Helvetica, ZapfDingbatsSome
text  More
text/fo:inline
FOP should (again in theory) automatically switch to
ZapfDingbats if
Helvetica doesn't contain a character. The problem is that FOP
doesn't do that, yet.
Working around this in XSLT is next to impossible (I
think), which
leaves a special preprocessor that inserts special fo:inlines as
necessary but in this case you could just as well try to
implement
that directly in FOP. It'll not be so simple.
fx type=head-scratching/
On 09.03.2005 16:49:19 [EMAIL PROTECTED] wrote:
Hi,
This is not really what I am trying to achieve. I know
that I can
handle special characters using the ZapfDingbats font.
However what
I don't know to do is parse a text content to encapsulate
fo:inline element each time such a special character is found.
So tranforming:
Some text  More text
To:
fo:inline font-family=Helvetica Some text  fo:inline
font-family=ZapfDingbats/fo:inline More text /fo:inline
Patrick
On 9 mars 05, at 16:41, Jeremias Maerki wrote:
Lots of examples in the distribution, for example:
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo?
rev=1.3view=markup
...and in the documentation:
http://xml.apache.org/fop/fo.html#xml-special-chars
On 09.03.2005 10:21:11 [EMAIL PROTECTED] wrote:
Hi,
I need to display in a pdf file some text that
contains different
type of characters: some are ascii type but other are special
ones like the 'star' or 'square' characters. I understand from
what I have read that those special characters are not
available
in the default Helvetica or Courier base font and that
I need to
use the ZapfDingbats font.
So what I need to achieve is transform the following
XML content:
Some text  More text
Into:
fo:inline font-family=Helvetica Some text  fo:inline
font-family=ZapfDingbats/fo:inline More text
/fo:inline
How can this be done using XSL to create the proper FO
document
knowing that I don't know in advance what the text to
translate
looks like and how many 'special' characters it contains (ex
'asdfasdfasdfasd')
Thanks for any tips!
Patrick

Jeremias Maerki

PDFRenderer.render exception

2005-01-27 Thread [EMAIL PROTECTED]
hi all
When I parse my fo file I got a strange nullpointer exception.
That's what I get:
using SAX parser org.apache.xerces.parsers.SAXParser
foFileIS:C:\IdeaProjects\ADMIN_CONSOLE\admin_console\pdf\1106849089906.fo
rendering areas to PDF
FATAL ERROR: null
java.lang.NullPointerException
at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:100)
at org.apache.fop.apps.Driver.render(Driver.java:471)
at 
rt11000.printdocument.UtilitiesReport.transformXmlToPdf(UtilitiesReport.java:249)
at rt11000.printdocument.Transformer.producePDF(Transformer.java:71)
at rt11000.printdocument.Transformer.main(Transformer.java:229)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

and  that's my code: I point u where I get the error.

parser.setFeature( 
http://xml.org/sax/features/namespace-prefixes;, true ) ;
driver.setRenderer(org.apache.fop.render.pdf.PDFRenderer);

driver.addElementMapping(org.apache.fop.fo.StandardElementMapping);
driver.addElementMapping(org.apache.fop.svg.SVGElementMapping);

driver.addElementMapping(org.apache.fop.extensions.ExtensionElementMapping);
   // 
driver.addElementMapping(org.apache.fop.fo.StandardPropertyListMapping);

//driver.addElementMapping(org.apache.fop.svg.SVGPropertyListMapping);

//driver.addElementMapping(org.apache.fop.extensions.ExtensionPropertyListMapping);
System.out.println(foFileIS:+foFileIS);
InputSource inputSource=new InputSource(foFile );
driver.setInputSource(inputSource);
driver.setXMLReader(parser);
driver.render();  // HERE IS THE ERROR !!
driver.setOutputStream(new FileOutputStream( pdfFile ));





Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it



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



Re: Win-Ansi font embedding follow-up

2004-06-22 Thread [EMAIL PROTECTED]
i have played around a bit. when converting TTF fonts with -enc ansi i 
get correct font-names in pdf-document. without that, i always to 
something like 1E344MyFontName no i get MyFontName.
When i now run (linux) fop with -nocopy -noedit -o secret the pdf-file 
can be opened but my fonts are replaced by an adobe default font. not 
the result wanted, but much better than getting ... in place of the 
characters...

i now use CryptoPDF a perl library, which encrypt the pdf document 
without any problem. it was the only tool i found, which will work as a 
command-line tool. ok, it's not opensource, but the price with 30$ is ok 
for me.

markus
Jeremias Maerki wrote:
The code has grown. At first, there was WinAnsi embedding only, after
that TrueType subset embedding was implemented. This should have fixed
the whole issue if it hadn't been for the nasty encryption bug (which is
a problem of the PDF library, fixed in CVS HEAD). So people need to
fall back to WinAnsi-style embedding where nobody cared to implement
subset embedding for, because WinAnsi embedding is extremely easy to
implement in comparison with Unicode subset embedding.
I hope this answers your question.
As I indicated in http://issues.apache.org/bugzilla/show_bug.cgi?id=21303
(thanks, Markus, for looking it up for me) there's a work-around
involving third-party PDF encryption tools.
it's me - markus
On 22.06.2004 18:08:23 Dave_S_White wrote:
I had asked a similar question before, but got no responses. Trying again
asking a better way (hopefully).
If I use CID encoding, the font is partially embededded, but win-ansi
encoding results in the entire font being embedded ( and very large PDF's).
I'm not an expert on encoding by any means, but I don't believe this is
inherently part of being win-ansi encoding is it? My assumption is that
whoever wrote that portion of FOP didn't/couldn't do a partial embedding
for some reason.
Can someone please confirm/correct this statement?

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]


pdf document info

2004-06-22 Thread [EMAIL PROTECTED]
does anybody knows a way to add the document info to a
pdf-file created with fop?
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop and fonts in embeded svg graphics?

2004-06-21 Thread [EMAIL PROTECTED]
thanxs,
you're right: strokesvgtext is the key. with strokeSVGText=true the text 
will be rendered as graphic instead of text. exact what i wanted.
my fault, i tought both versions (windows and unix) were the same...

markus
Jeremias Maerki wrote:
Are your userconfig.xml files the same? This sounds like a difference in
the strokeSVGText 
(http://xml.apache.org/fop/configuration.html#svg-strokeSVGText)
config entry. Also, since this happens in an SVG/Batik context this may
be due to differences between the Windows und Linux font subsystems. Try
using a different font just to see if this changes anything.
On 20.06.2004 11:33:11 [EMAIL PROTECTED] wrote:
in my xsl-fo file i have embeded serveral svg-graphics. in this graphics 
i use svg:text font-family=monospace to print out a 
monospaced/courier like font.
i get two different results with fop under linux and windows.
with the windows-version the text is graphic i can't edit with the 
touchup-tool in acrobat. the font-dialog in acrobat also doesn't know 
anything about that monospaced font.
when i run the linux-version of fop i can edit the svg-text in acrobat 
and the fontdialog says that Courier is embeded...

what is wrong? i want to use svg-graphic-text so that the text can't be 
changed that easy in the pdf-document...

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


bug? fop -nocopy -noedit and own fonts

2004-06-20 Thread [EMAIL PROTECTED]
in my xsl-fo file i use an own font-family converted from a ttf font. 
this works very well. but when i run fop with -nocopy -noedit -o 
secret then my acrobat can't read the (embeded) font information and 
tries to use a default font. which makes the dokument look very odd...

is this a bug?
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


nullpointerexception: svg-grafik/text with batik-converted ttf-font

2004-06-16 Thread [EMAIL PROTECTED]
i have a problem with fop 0.20.5 on linux when trying to produce a pdf 
document out of my xsl-fo stylesheet.
i have successfully setup fop to use my fonts when rendering text. this 
works. but now i want to use svg to embed some grafipcs - no problem so 
far. but when i try to use the same font for svg-text as in my document 
i get a nullpointerexception.

i have converted the ttf-font via apache-batik, seems to be correct. 
look very pretty when using batik-squiggle.

i googled but couldn't find any hint to solve the problem... when using 
the svg-default-font fop runs without any error...

thanxs
markus
this is what i get when running fop.sh -xsl input.xsl -xml data.xml -pdf 
test.pdf -d

[DEBUG] Input mode:
[DEBUG] xslt transformation
[DEBUG] xml input file: ticket.xml
[DEBUG] xslt stylesheet: tickets2.xsl
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: t.pdf
[DEBUG] OPTIONS
[DEBUG] user configuration file: fonts.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/home/rit/fop/
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] java.lang.NullPointerException
org.apache.fop.apps.FOPException: java.lang.NullPointerException
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
at org.apache.fop.apps.Fop.main(Fop.java:62)
-
java.lang.RuntimeException: java.lang.NullPointerException
	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
	at org.apache.fop.apps.Driver.render(Driver.java:498)
	at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
	at org.apache.fop.apps.Fop.main(Fop.java:62)

-
java.lang.RuntimeException: java.lang.NullPointerException
	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
	at org.apache.fop.apps.Driver.render(Driver.java:498)
	at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
	at org.apache.fop.apps.Fop.main(Fop.java:62)


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


Re: What XSLT and XSL-FO editor do you use?

2004-06-16 Thread [EMAIL PROTECTED]
Roger wrote:
I'm wondering what editors you use to create your XSD, XSLT and XSL-FO 
documents. At the moment I'm using a trial version of Altova XMLSPY and 
Stylevision. XMLSpy is meant to create the xsd, and sample 
xml-data-documents. Stylevision is meant for the FO and XSLT templates.

XMLSpy is okay as far as I can see, but Stylevision has one big 
drawback: you can't edit the code in it. It only has a wysiwyg editor, 
which works quite okay, but not always like I want it. Now I merely use 
it to create a quick-start template, and then edit in jEdit.

With the proper plugins installed, jEdit works really nice. My problem 
is that I cannot get the new code back into Stylevision. At the Altova 
website they try to present this as a feature, but of course it's not.

Do you know of any good wysiwyg editor for FO, and one that allows you 
to edit or import the code? I don't expect Dreamweaver quality. Other 
good tools are also welcome. XMLSpy works fine to create an XSD, but 
I've seen a lot of tools out there, so I'm wondering what your 
experiences are, what tips you have.

i am new to xsl  co. for our current project we need to create 
pdf-documents out of (xml-)data. after using different approaches to get 
the pdf document i came to fop and xsl-fo. i also have downloaded 
stylevision, but the code generated was very ugly. so after a few tries 
i have created the xsl-template just with my default editor (vim). 
worked great...

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


Re: Development Version: xml+xsl - fo - rtf

2004-06-16 Thread [EMAIL PROTECTED]
Johannes Franz wrote:
hi,
just managed to download and build the development version of fop. I want to 
create a rtf file from xml+xsl. Is there a possibillity to do something like 
that: ./fop.sh -xml xmlfile.xml -xsl xslfile.xsl -rtf rtfoutputfile.rtf or do 
i have to render the fo file with a standalone xslt preprocessor and then try 
the following ./fop.sh -fo fofile.fo -rtf rtffile.rtf?

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

the syntax
fop.sh -xml input.xml -xsl format.xsl -rtf output.rtf
is quite right. but as http://xml.apache.org/fop/output.html#rtf states 
the rtf-support is not implemented at the moment.

i use this when creating a pdf-file from xml-data. you only have to 
write the xsl(fo) template to do the conversion...

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


-- FOP/COCOON

2003-10-14 Thread [EMAIL PROTECTED]



Hello,

I have problem. When i use the 
fo:external-graphic/ markup in my fo stylesheet, the graphic didn't 
display in mygenerated PDF.Why 
?Thanks.


Re: -- FOP/COCOON

2003-10-14 Thread [EMAIL PROTECTED]
ok,

the external.fo file :

- Original Message - 
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 3:08 PM
Subject: Re: -- FOP/COCOON


 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 hello,
 
 i'm using fop 0.20.5.
 In command line graphics are displayed in my PDF file and i have no
error.
 
 i'm using cocoon 2.2.21
 

 Can you provide a snippet of your XSL-FO or XSL stylesheet that shows the
 fo:external-graphics?

 I'm not familar with Cocoon, is there a log file that console output from
 FOP is captured to. Please try to find such a log, and look for error
 messages from FOP. It is difficult to guess what the problem is without an
 error message.

 As a pure guess I would say that you are referencing a graphics file using
a
 relative path and you havent set the baseDir setting in the user config.

 Chris

 _
 Express yourself with cool emoticons - download MSN Messenger today!
 http://www.msn.co.uk/messenger


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




external.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: -- FOP/COCOON

2003-10-14 Thread [EMAIL PROTECTED]
thanks !
- Original Message - 
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 4:32 PM
Subject: Re: -- FOP/COCOON


 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 Ok, you have identified the problem thank you !
 
 i switch url('burps.svg') by url('file:///burps.svg') and it's ok.
 
 But How to define a basedir in the file ?

 Please follow the link I provided. It explained the problem you were
getting
 and also provided another link that has all the details needed to set
 basedir in the user config. This link is provided here for your convience.

 http://xml.apache.org/fop/configuration.html

 Chris

 _
 Tired of 56k? Get a FREE BT Broadband connection
 http://www.msn.co.uk/specials/btbroadband


 -
 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]



Can't connect to X11

2003-10-09 Thread MORIN Eric - NTR ( [EMAIL PROTECTED] )
Hello,

I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context
on Unix or Linux. 
Generally it works fine, but sometimes I get the following exception :

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:54)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:53)
at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
at org.apache.fop.svg.PDFGraphics2D.init(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
Source)
at org.apache.fop.svg.SVGArea.render(Unknown Source)
at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
Source)
...

Any idea ?

Thanks in advance

Eric

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



RE: Can't connect to X11

2003-10-09 Thread MORIN Eric - NTR ( [EMAIL PROTECTED] )

'headless' option can be used only since jdk 1.4 but i use jdk 1.3 !


-Message d'origine-
De : tien hai nguyen [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 9 octobre 2003 11:21
À : [EMAIL PROTECTED]
Objet : Re: Can't connect to X11


try this

$JAVACMD -Djava.awt.headless=true -classpath $LOCALCLASSPATH $FOP_OPTS 
org.apache.fop.apps.Fop $@

instead of
$JAVACMD -classpath $LOCALCLASSPATH $FOP_OPTS org.apache.fop.apps.Fop $@

in script fop.sh


On Thursday 09 October 2003 11:10, MORIN Eric - NTR ( 
[EMAIL PROTECTED] ) wrote:
 Hello,

 I'am using FOP 0.20.4 to create PDF with svg graphics in a servlet context
 on Unix or Linux.
 Generally it works fine, but sometimes I get the following exception :

 java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as
 the value of the DISPLAY variable.
   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
   at
 sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:54)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:115)
   at

java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
t .java:53)
   at
 java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1006)
   at org.apache.fop.svg.PDFGraphics2D.init(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
 Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
 Source)
   at org.apache.fop.svg.SVGArea.render(Unknown Source)
   at
 org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
 Source)
   ...

 Any idea ?

 Thanks in advance

 Eric

 -
 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]



fop layout question

2003-09-29 Thread [EMAIL PROTECTED]

A simple question :
Given a text WHICH LENGTH IS UNKNOWN, embbeded in a xml file, is there any way with FOP to ensure that THE WHOLE TEXT WILL FIT ON A SINGLEPDF PAGE ? (i don't care about the font size)

Thank you for your answers.



Accédez au courrier électronique de La Poste : www.laposte.net ; 

3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)



Re: UniCode - ?

2002-06-02 Thread [EMAIL PROTECTED]
J.Pietschmann,

yeah that is what i mean. Where and how i put the encoding? (the declaration
or what ever in my line code..)
and how i know the type of encoding that i use? actually i want to use Thai
encoding, but i don't know from where i get the encoding type for the Thai.

could you please to teach me about it?

Terima kasih,

Ali




- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 31, 2002 4:15 AM
Subject: Re: UniCode - ?


 [EMAIL PROTECTED] wrote:
  I want to use Thai character in my XML, what should i add into my xsl or
my
  xml to support that Thai character. I think i have to put some line code
  about Unicode.
 ...
  Here is my error compile code when i tried to generate pdf using FOP.
  any advise to solve this problem...?
  file:/c:/ali/sonnet/xmlsonnet.xml; Line 13; Column 12; [ERROR]: An
invalid
  XML character (Unicode: 0
  org.apache.fop.apps.FOPException: An invalid XML character (Unicode:
0xb7)
  was found in the element
  at org.apache.fop.apps.Driver.render(Driver.java:486)

 Odd, 0xb7 is not an illegal XML character by itself.
 Check whether the encoding declaration at the beginning of the
 XML source file matches the actual encoding. It might have been
 corrupted by transport (download). Most likely, the encoding or
 even the whole XML declaration got lost, which means the parser
 assumes UTF-8 encoding, while the actual encoding is something
 else.

 J.Pietschmann




FOP and servlets

2002-02-15 Thread [EMAIL PROTECTED]

Hi,

I've been using FOP for a few days and i have a problem with displaying PDF 
through a browser with FOP. I'm using FOP 0.20.1 with Xalan 1.2 and Xerces 1.2. 
Here's a sample of my servlet source :

String xmlString = request.getParameter(XML);
String xslString = resquest.getParameter(XSL);
ByteArrayOutputStream fo = new ByteArrayOutputStream();
//XSLT transformation 
XSLTProcessor lProcessor = XSLTProcessorFactory.getProcessor();
lProcessor.process(new XSLTInputSource(new StringReader(xmlString)), new 
XSLTInputSource(new StringReader(xslString), new XLSTResultTarget(fo));
// PDF generation with FOP
Driver lFOPDriver = new Driver();
InputSource FOSource = new InputSource(fo);
response.setContentType(application/pdf);
ServletOutputStream output = response.getOutputStream();
lFOPDriver.setOutputStream(output);
lFOPDriver.setRenderer(RENDER_PDF);
XMLReader reader = (XMLReader) 
Class.forName(org.apache.xerces.parsers.SAXParser).newInstance();
lFOPDriver.setXmlReader(reader);
lFOPDriver.setInputSource(FOSource);
lFOPDriver.run();
output.flush();
output.close();

When I call this servlet, the browser don't display the generated PDF but I 've 
noticed that it appears in my Temporary Internet Files.

Does anyone have an idea ?

Regards.

JD.

Faites un voeu et puis Voila ! www.voila.fr 
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap.