You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Polly Tsang <po...@ouhk.edu.hk> on 2002/03/08 05:25:35 UTC

userconfig.xml

Hi all,

How can I use userconfig in embedding servlet programs?

I don't understand the following 2 statements that included in 
xml.apache.org web page. Could someone give a brief sample code about this?

     userConfigFile = new File(userConfig);
    options = new Options(userConfigFile);

Thanks you so much!!!

Regards,
Polly

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Extended Fonts

Posted by Polly Tsang <po...@ouhk.edu.hk>.
Hi all,

I have another question about using extended fonts. I've got a font called 
HKSCS.tte (This is developed by Hong Kong Government which supplement with 
another fonts mingliu.ttc). I've got no problem if I only display the big5 
characters using mingliu.ttc. However,  if some fonts are using HKSCS 
standard, these characters will disappear in pdf file. Does FOP support 
this type of supplementary fonts now? For more details about HKSCS 
standard, please go to visit : 
http://www.info.gov.hk/digital21/eng/hkscs/introduction.html .

Thanks you very much!

Best Regards,
Polly

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: userconfig.xml

Posted by Polly Tsang <po...@ouhk.edu.hk>.
Yes, Thank you so much.
At 10:47 AM 2002/3/8 -0500, you wrote:
>In the context of a servlet, where would I place userconfig.xml file
>relative to the webapps dir, and what path would I use to retrieve the file.
>According to java.io API JavaDoc file, a relative path is relative to the
>user's home dir.  Would I actually have to say:
>
>File file = new File("c:\tomcat4\webapps\soap\WEB-INF\userconfig.xml")
>
>or something like:
>
>File file = new File("userconfig.xml")
>
>Any ideas?  I need the config file because it has font info in it.
>
>--
>
>David B. Bitton
>david@codenoevil.com
>www.codenoevil.com
>
>Diversa ab illis virtute valemus.
>----- Original Message -----
>From: "Peter B. West" <pb...@powerup.com.au>
>To: <fo...@xml.apache.org>
>Sent: Friday, March 08, 2002 12:49 AM
>Subject: Re: userconfig.xml
>
>
> > Polly,
> >
> > You are not the first, nor will you be the last, to be thrown by this.
> >  All of the work of the Options object is done in the constructor.  You
> > don't have to do anything more with it.  It sets up a lot of static
> > data, accessible by static methods, in a Configuration class.  Have a
> > look at org.apache.fop.configuration.Configuration for the access
> > methods.  Look at the example config.xml and userconfig.xml in
> > xml-fop/conf to see what sort of data is stored in there.
> >
> > Hmm....  This seems to crop up a bit.  Maybe something like a static
> > Options.configure() would be less confusing for an essentially static
> > operation.
> >
> > Peter
> >
> > Polly Tsang wrote:
> >
> > > Hi all,
> > >
> > > How can I use userconfig in embedding servlet programs?
> > >
> > > I don't understand the following 2 statements that included in
> > > xml.apache.org web page. Could someone give a brief sample code about
> > > this?
> > >
> > >     userConfigFile = new File(userConfig);
> > >    options = new Options(userConfigFile);
> > >
> > > Thanks you so much!!!
> > >
> > > Regards,
> > > Polly
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: fop-dev-help@xml.apache.org
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: userconfig.xml

Posted by "David B. Bitton" <da...@codenoevil.com>.
In the context of a servlet, where would I place userconfig.xml file
relative to the webapps dir, and what path would I use to retrieve the file.
According to java.io API JavaDoc file, a relative path is relative to the
user's home dir.  Would I actually have to say:

File file = new File("c:\tomcat4\webapps\soap\WEB-INF\userconfig.xml")

or something like:

File file = new File("userconfig.xml")

Any ideas?  I need the config file because it has font info in it.

--

David B. Bitton
david@codenoevil.com
www.codenoevil.com

Diversa ab illis virtute valemus.
----- Original Message -----
From: "Peter B. West" <pb...@powerup.com.au>
To: <fo...@xml.apache.org>
Sent: Friday, March 08, 2002 12:49 AM
Subject: Re: userconfig.xml


> Polly,
>
> You are not the first, nor will you be the last, to be thrown by this.
>  All of the work of the Options object is done in the constructor.  You
> don't have to do anything more with it.  It sets up a lot of static
> data, accessible by static methods, in a Configuration class.  Have a
> look at org.apache.fop.configuration.Configuration for the access
> methods.  Look at the example config.xml and userconfig.xml in
> xml-fop/conf to see what sort of data is stored in there.
>
> Hmm....  This seems to crop up a bit.  Maybe something like a static
> Options.configure() would be less confusing for an essentially static
> operation.
>
> Peter
>
> Polly Tsang wrote:
>
> > Hi all,
> >
> > How can I use userconfig in embedding servlet programs?
> >
> > I don't understand the following 2 statements that included in
> > xml.apache.org web page. Could someone give a brief sample code about
> > this?
> >
> >     userConfigFile = new File(userConfig);
> >    options = new Options(userConfigFile);
> >
> > Thanks you so much!!!
> >
> > Regards,
> > Polly
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: userconfig.xml

Posted by "Peter B. West" <pb...@powerup.com.au>.
Polly,

You are not the first, nor will you be the last, to be thrown by this. 
 All of the work of the Options object is done in the constructor.  You 
don't have to do anything more with it.  It sets up a lot of static 
data, accessible by static methods, in a Configuration class.  Have a 
look at org.apache.fop.configuration.Configuration for the access 
methods.  Look at the example config.xml and userconfig.xml in 
xml-fop/conf to see what sort of data is stored in there.

Hmm....  This seems to crop up a bit.  Maybe something like a static 
Options.configure() would be less confusing for an essentially static 
operation.

Peter

Polly Tsang wrote:

> Hi all,
>
> How can I use userconfig in embedding servlet programs?
>
> I don't understand the following 2 statements that included in 
> xml.apache.org web page. Could someone give a brief sample code about 
> this?
>
>     userConfigFile = new File(userConfig);
>    options = new Options(userConfigFile);
>
> Thanks you so much!!!
>
> Regards,
> Polly
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org