Re: FOP Supports Multiple Charset ?

2005-06-14 Thread J.Pietschmann

Lalitha Prasad wrote:

Hi Pietschmann,

 
This must be a proper URL, not a file name.



   
   


I don't think putting more than a font triple inside a font is going to
work, at the very least your bold/italic would look like normal.
You'll probably have to get italic/bold versions of the font as well.
FOP can't generate italic or bold versions from a normal font.


But i am getting the following Exception:

exception typenull
org.apache.jasper.JasperException


Well, you ultimately caught a wrapper exception with no message. That's
bad both for your application and for tracking down the cause of the
problem.


What might be the reason?


I have no idea. Wrap a try/catch block around the FOP code and log
any exception you get.

J.Pietschmann


Re: FOP Supports Multiple Charset ?

2005-06-13 Thread Lalitha Prasad
unIt(PoolTcpEndpoint.java

:589)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP

ool.java:666)
   at java.lang.Thread.run(Thread.java:534)


If i mention "ArialUnicodeMS" font-family in XSL.then only I am getting this 
exception.Otherwise it will open PDF with normal old font.


What might be the reason?. Please help me.

Regards,
LALITH













From: "J.Pietschmann" <[EMAIL PROTECTED]>
Reply-To: fop-dev@xmlgraphics.apache.org
To: fop-dev@xmlgraphics.apache.org
Subject: Re: FOP Supports Multiple Charset ?
Date: Mon, 13 Jun 2005 22:24:36 +0200

Lalitha Prasad wrote:
 While generating font metrics file . I am getting the following 
exception:

[snip]
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:\C

:\Java\fop-0.20.5\arialuni.xml (The filename, directory name, or volume


Ouch!

Try one of the following:
1. Create the mmetrics file in the local directory and move it later to
its final destination
 java -cp 
"fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar" 
   org.apache.fop.fonts.apps.TTFReader C:\Java\fop-0.20.5\Arialuni.ttf 
arialuni.xml


2. Try a file URL for the metrics file:
 java -cp 
"fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar" 
   org.apache.fop.fonts.apps.TTFReader C:\Java\fop-0.20.5\Arialuni.ttf 
file:///C:/Java/fop-0.20.5/arialuni.xml


J.Pietschmann


_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: FOP Supports Multiple Charset ?

2005-06-13 Thread J.Pietschmann

Lalitha Prasad wrote:

 While generating font metrics file . I am getting the following exception:

[snip]
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:\C
:\Java\fop-0.20.5\arialuni.xml (The filename, directory name, or volume 


Ouch!

Try one of the following:
1. Create the mmetrics file in the local directory and move it later to
its final destination
 java -cp 
"fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar" 
   org.apache.fop.fonts.apps.TTFReader C:\Java\fop-0.20.5\Arialuni.ttf 
arialuni.xml


2. Try a file URL for the metrics file:
 java -cp 
"fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar" 
   org.apache.fop.fonts.apps.TTFReader C:\Java\fop-0.20.5\Arialuni.ttf 
file:///C:/Java/fop-0.20.5/arialuni.xml


J.Pietschmann


Re: FOP Supports Multiple Charset ?

2005-06-12 Thread Lalitha Prasad

Hi,

 While generating font metrics file . I am getting the following exception:

C:\Java\fop-0.20.5>java -cp 
"fop.jar;avalon-framework.jar;xml-apis.jar;xercesImp
l-2.2.1.jar;xalan-2.4.1.jar" org.apache.fop.fonts.apps.TTFReader 
C:\Java\fop-0.2

0.5\Arialuni.ttf C:\Java\fop-0.20.5\arialuni.xml
TTF Reader v1.1.1

Reading C:\Java\fop-0.20.5\Arialuni.ttf...

Number of glyphs in font: 51180
Postscript format 3
Creating xml font file...

Creating CID encoded metrics
Writing xml font file C:\Java\fop-0.20.5\arialuni.xml...

javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:\C
:\Java\fop-0.20.5\arialuni.xml (The filename, directory name, or volume 
label sy

ntax is incorrect)
   at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont

entHandler(TransformerIdentityImpl.java:263)
   at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf

ormerIdentityImpl.java:296)
   at 
org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243)

   at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
Caused by: java.io.FileNotFoundException: 
file:\C:\Java\fop-0.20.5\arialuni.xml

(The filename, directory name, or volume label syntax is incorrect)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(Unknown Source)
   at java.io.FileOutputStream.(Unknown Source)
   at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont

entHandler(TransformerIdentityImpl.java:253)
   ... 3 more
-
java.io.FileNotFoundException: file:\C:\Java\fop-0.20.5\arialuni.xml (The 
filena

me, directory name, or volume label syntax is incorrect)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(Unknown Source)
   at java.io.FileOutputStream.(Unknown Source)
   at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont

entHandler(TransformerIdentityImpl.java:253)
   at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf

ormerIdentityImpl.java:296)
   at 
org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243)

   at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196)
This font contains no embedding license restrictions

What might be the reason. All jar and other Font ttf files are in the same 
directory.


Please help me.

Thanks in Advance,

LALITH






From: "J.Pietschmann" <[EMAIL PROTECTED]>
Reply-To: fop-dev@xmlgraphics.apache.org
To: fop-dev@xmlgraphics.apache.org
Subject: Re: FOP Supports Multiple Charset ?
Date: Thu, 09 Jun 2005 21:11:05 +0200

Lalitha Prasad wrote:
Yes , we can print the special characters using different fonts ( ie. 
Symbol ). But i need to print original chars also.It seems very difficult 
to apply muliple font for muliple occurences of special Characters.


Do you have any easy method to print one paragraph with different 
font-families?.


If you install and use a user font which has all necessary glyphs, for
example the well known Arial Unicode font, you don't have to switch the
font family in the FO source.

J.Pietschmann


_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: FOP Supports Multiple Charset ?

2005-06-09 Thread J.Pietschmann

Lalitha Prasad wrote:
Yes , we can print the special characters using different fonts ( ie. 
Symbol ). But i need to print original chars also.It seems very 
difficult to apply muliple font for muliple occurences of special 
Characters.


Do you have any easy method to print one paragraph with different 
font-families?.


If you install and use a user font which has all necessary glyphs, for
example the well known Arial Unicode font, you don't have to switch the
font family in the FO source.

J.Pietschmann


Re: FOP Supports Multiple Charset ?

2005-06-08 Thread Jeremias Maerki
The theory is to specify multiple font-families which the formatter then
uses as necessary:

Normal text and a symbol ≥
and again some text.

But as theory goes, this is not yet implemented in FOP. So there's no
easy method.

On 09.06.2005 06:42:20 Lalitha Prasad wrote:
> Yes , we can print the special characters using different fonts ( ie. Symbol 
> ). But i need to print original chars also.It seems very difficult to apply 
> muliple font for muliple occurences of special Characters.
> 
> Do you have any easy method to print one paragraph with different 
> font-families?. I can apply different fonts by using XSL and XSL:FO.
> 
>   ≥. i can 
> print '¡Ü' in PDF.
> 
> 
> If you know any easy method. please let me know.


Jeremias Maerki



Re: FOP Supports Multiple Charset ?

2005-06-08 Thread Lalitha Prasad
Yes , we can print the special characters using different fonts ( ie. Symbol 
). But i need to print original chars also.It seems very difficult to apply 
muliple font for muliple occurences of special Characters.


Do you have any easy method to print one paragraph with different 
font-families?. I can apply different fonts by using XSL and XSL:FO.


 ≥. i can 
print '¡Ü' in PDF.



If you know any easy method. please let me know.

Regards,
LALITH





From: "J.Pietschmann" <[EMAIL PROTECTED]>
Reply-To: fop-dev@xmlgraphics.apache.org
To: fop-dev@xmlgraphics.apache.org
Subject: Re: FOP Supports Multiple Charset ?
Date: Wed, 08 Jun 2005 21:57:38 +0200

Lalitha Prasad wrote:
 The main pointing issue is we should display the following list of 
Characters in PDF.


 http://courses.chem.psu.edu/chem38/technical/special-characters.html


You can use all these characters provided you install a font containing
glyphs for the characters. See
 http://xml.apache.org/fop/fonts.html
It's up to you to get an apropriate font. You might take a look at your
Windows font directory.

J.Pietschmann


_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




Re: FOP Supports Multiple Charset ?

2005-06-08 Thread J.Pietschmann

Lalitha Prasad wrote:
 The main pointing issue is we should display the following list of 
Characters in PDF.


 http://courses.chem.psu.edu/chem38/technical/special-characters.html


You can use all these characters provided you install a font containing
glyphs for the characters. See
 http://xml.apache.org/fop/fonts.html
It's up to you to get an apropriate font. You might take a look at your
Windows font directory.

J.Pietschmann


RE: FOP Supports Multiple Charset ?

2005-06-08 Thread Gaywood, Mark
You may find this site useful

http://www.unicode.org/unibook/

Mark Gaywood
theframe Programme
Catlin Underwriting Agencies Limited
7th Floor, 3 Minster Court, Mincing Lane, London EC3 7DD
[EMAIL PROTECTED]
Catlin Underwriting Agencies Ltd and Catlin Insurance Company Ltd are
authorised and regulated by the Financial Services Authority



-Original Message-
From: Lalitha Prasad [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 08, 2005 6:13 AM
To: fop-dev@xmlgraphics.apache.org
Subject: Re: FOP Supports Multiple Charset ?


Hi Pietschmann,

Thanks for your reply.

  The main pointing issue is we should display the following list of 
Characters in PDF.

  http://courses.chem.psu.edu/chem38/technical/special-characters.html

We are doing Drugs related project. Users will paste the information
from MS 
Word into our Applications Form. We have provided the Print option for 
taking Printouts.For that we are using FOP.

It is displaying correctly in our JSPs.

Can we display these Characters in PDF using FOP?.

If possible please send me that information ASAP.

Thanks in Advance,
LALITH









>From: "J.Pietschmann" <[EMAIL PROTECTED]>
>Reply-To: fop-dev@xmlgraphics.apache.org
>To: fop-dev@xmlgraphics.apache.org
>Subject: Re: FOP Supports Multiple Charset ?
>Date: Tue, 07 Jun 2005 22:00:51 +0200
>
>Lalitha Prasad wrote:
>>Now I cann't print some Special Charactors on the PDF eventhough those
>>characters are displaying in HTML Interfaces.
>
>See also
>  http://xml.apache.org/fop/faq.html#pdf-characters
>  http://xml.apache.org/fop/fo.html#xml-special-chars
>
>J.Pietschmann

_
On the road to retirement? Check out MSN Life Events for advice on how
to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



This e-mail is confidential and intended solely for the use of the 
individual(s) to whom it is addressed.  If you are not the intended recipient, 
be advised that you have received this e-mail in error and that any use, 
dissemination, forwarding, printing, copying of , or any action taken in 
reliance upon, it is strictly prohibited and may be illegal.


Re: FOP Supports Multiple Charset ?

2005-06-07 Thread Lalitha Prasad

Hi Pietschmann,

Thanks for your reply.

 The main pointing issue is we should display the following list of 
Characters in PDF.


 http://courses.chem.psu.edu/chem38/technical/special-characters.html

We are doing Drugs related project. Users will paste the information from MS 
Word into our Applications Form. We have provided the Print option for 
taking Printouts.For that we are using FOP.


It is displaying correctly in our JSPs.

Can we display these Characters in PDF using FOP?.

If possible please send me that information ASAP.

Thanks in Advance,
LALITH










From: "J.Pietschmann" <[EMAIL PROTECTED]>
Reply-To: fop-dev@xmlgraphics.apache.org
To: fop-dev@xmlgraphics.apache.org
Subject: Re: FOP Supports Multiple Charset ?
Date: Tue, 07 Jun 2005 22:00:51 +0200

Lalitha Prasad wrote:
Now I cann't print some Special Charactors on the PDF eventhough those 
characters are displaying in HTML Interfaces.


See also
 http://xml.apache.org/fop/faq.html#pdf-characters
 http://xml.apache.org/fop/fo.html#xml-special-chars

J.Pietschmann


_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement




Re: FOP Supports Multiple Charset ?

2005-06-07 Thread J.Pietschmann

Lalitha Prasad wrote:
Now I cann't print 
some Special Charactors on the PDF eventhough those characters are 
displaying in HTML Interfaces.


See also
 http://xml.apache.org/fop/faq.html#pdf-characters
 http://xml.apache.org/fop/fo.html#xml-special-chars

J.Pietschmann


Re: FOP Supports Multiple Charset ?

2005-06-07 Thread Jeremias Maerki
Use a proper XML editor to create XML files and you won't have problems
like that. Obviously, you create invalid XML files, probably with a
normal text editor, right? But even if you use ISO-8859-1 you can use
the same character references as shown in the links I gave you earlier.

On 07.06.2005 11:22:32 Lalitha Prasad wrote:
> If the Charset is "UTF-8". I got the following exceptions:
> 
> 1. "javax.servlet.ServletException: Invalid byte 1 of 1-byte UTF-8 
> sequence."   and
> 2. "javax.servlet.ServletException: An invalid XML character (Unicode: 0x19) 
> was fou
> nd in the element content of the document."
> 
> I have changed the Charset from UTF-8 to ISO-8859-1. Now I cann't print some 
> Special Charactors on the PDF eventhough those characters are displaying in 
> HTML Interfaces.
> 
> Please help me in this regard. We are using "Fop -xsl foo.xsl -xml foo.xml 
> -pdf foo.pdf" pattern forgenerating PDF files using FOP.
> 
> Thanks in advance.
> 
> Regards,
> LALITH
> 
> 
> 
> 
> 
> 
> 
> 
> >From: Jeremias Maerki <[EMAIL PROTECTED]>
> >Reply-To: fop-dev@xmlgraphics.apache.org
> >To: fop-dev@xmlgraphics.apache.org
> >Subject: Re: FOP Supports Multiple Charset ?
> >Date: Tue, 07 Jun 2005 10:22:37 +0200
> >
> >We'd appreciate if you would post questions on FOP to the fop-user
> >mailing list next time. Thank you.
> >
> >Since we have XML charsets are less of a problem today. I suggest you
> >use UTF-8 as encoding for your XML documents so you have the full
> >Unicode charset available to you which can map every character you will
> >need.
> >
> >Please have a look at the following example FO file:
> >
> >examples/fo/basic/fonts.fo (in the FOP distribution)
> >or
> >http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo?rev=1.3&view=markup
> >
> >Some additional info here:
> >http://xml.apache.org/fop/fo.html#xml-special-chars
> >
> >On 07.06.2005 09:26:33 Lalitha Prasad wrote:
> > >   I need to print Special Charactors in PDF file. ie. Trade Marks  and 
> >etc.
> > >
> > > Is it possible to print more than two Charsets usinf FOP?.
> >
> >
> >Jeremias Maerki
> >
> 
> _
> Don’t just search. Find. Check out the new MSN Search! 
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/



Jeremias Maerki



Re: FOP Supports Multiple Charset ?

2005-06-07 Thread Lalitha Prasad

If the Charset is "UTF-8". I got the following exceptions:

1. "javax.servlet.ServletException: Invalid byte 1 of 1-byte UTF-8 
sequence."   and
2. "javax.servlet.ServletException: An invalid XML character (Unicode: 0x19) 
was fou

nd in the element content of the document."

I have changed the Charset from UTF-8 to ISO-8859-1. Now I cann't print some 
Special Charactors on the PDF eventhough those characters are displaying in 
HTML Interfaces.


Please help me in this regard. We are using "Fop -xsl foo.xsl -xml foo.xml 
-pdf foo.pdf" pattern forgenerating PDF files using FOP.


Thanks in advance.

Regards,
LALITH









From: Jeremias Maerki <[EMAIL PROTECTED]>
Reply-To: fop-dev@xmlgraphics.apache.org
To: fop-dev@xmlgraphics.apache.org
Subject: Re: FOP Supports Multiple Charset ?
Date: Tue, 07 Jun 2005 10:22:37 +0200

We'd appreciate if you would post questions on FOP to the fop-user
mailing list next time. Thank you.

Since we have XML charsets are less of a problem today. I suggest you
use UTF-8 as encoding for your XML documents so you have the full
Unicode charset available to you which can map every character you will
need.

Please have a look at the following example FO file:

examples/fo/basic/fonts.fo (in the FOP distribution)
or
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo?rev=1.3&view=markup

Some additional info here:
http://xml.apache.org/fop/fo.html#xml-special-chars

On 07.06.2005 09:26:33 Lalitha Prasad wrote:
>   I need to print Special Charactors in PDF file. ie. Trade Marks  and 
etc.

>
> Is it possible to print more than two Charsets usinf FOP?.


Jeremias Maerki



_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: FOP Supports Multiple Charset ?

2005-06-07 Thread Jeremias Maerki
We'd appreciate if you would post questions on FOP to the fop-user
mailing list next time. Thank you.

Since we have XML charsets are less of a problem today. I suggest you
use UTF-8 as encoding for your XML documents so you have the full
Unicode charset available to you which can map every character you will
need.

Please have a look at the following example FO file:

examples/fo/basic/fonts.fo (in the FOP distribution)
or
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo?rev=1.3&view=markup

Some additional info here:
http://xml.apache.org/fop/fo.html#xml-special-chars

On 07.06.2005 09:26:33 Lalitha Prasad wrote:
>   I need to print Special Charactors in PDF file. ie. Trade Marks  and etc.
> 
> Is it possible to print more than two Charsets usinf FOP?.


Jeremias Maerki