RE: Using Options With Enbedding

2002-04-25 Thread Jim Urban

Arnd,

Thanks!  It may be ugly, but it sure works nice!

Jim



Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621


-Original Message-
From: Arnd Beißner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Using Options With Enbedding

> I understand (I think, I hope) how to add fonts to FOP.  I understand the
> concept of using an Options object to load the userconfig.xml file.
Where I
> get lost is, where in FopServlet does the Options object come in to
play?
> In other words, how do I pass my Options object to FOP so my fonts can
be
> used?

You don't. Just instantiate the Options object - it sets static instance
data.
Yes, it's ugly, but so far it has to be done this way.

Example:

 Options   options;

  // set up FOP options
  userConfigFile = new File(workPath + File.separator +
"userconfig.xml");
  options = new Options(userConfigFile);
  fopDriver.setRenderer(Driver.RENDER_PDF);

Hope this helps,

Arnd
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


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


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




Re: Using Options With Enbedding

2002-04-25 Thread David B. Bitton

For my SOAP class, I instantiate the Options object in the class
constructor.  That way, for each call to the class, Options is already set,
and good to go.  You can see when it gets created if you set your log level
to DEBUG.  You'll see:

...
DEBUG   10191   [fop ] (): reading user configuration file
...

or something very similiar  This is generated by the Options object.

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Code Made Fresh DailyT
- Original Message -
From: "Jeremias Maerki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 4:18 PM
Subject: Re: Using Options With Enbedding


> You don't have to. It does some magic in the background. "static" is the
> keyword. :-)
>
> On 24.04.2002 19:21:54 Jim Urban wrote:
> > I understand (I think, I hope) how to add fonts to FOP.  I understand
the
> > concept of using an Options object to load the userconfig.xml file.
Where I
> > get lost is, where in FopServlet does the Options object come in to
play?
> > In other words, how do I pass my Options object to FOP so my fonts can
be
> > used?
> >
> > Thanks,
> > Jim
>
>
> Cheers,
> Jeremias Maerki
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Re: Using Options With Enbedding

2002-04-24 Thread Jeremias Maerki

You don't have to. It does some magic in the background. "static" is the
keyword. :-)

On 24.04.2002 19:21:54 Jim Urban wrote:
> I understand (I think, I hope) how to add fonts to FOP.  I understand the
> concept of using an Options object to load the userconfig.xml file.  Where I
> get lost is, where in FopServlet does the Options object come in to play?
> In other words, how do I pass my Options object to FOP so my fonts can be
> used?
> 
> Thanks,
> Jim


Cheers,
Jeremias Maerki


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




Re: Using Options With Enbedding

2002-04-24 Thread Arnd Beißner

> I understand (I think, I hope) how to add fonts to FOP.  I understand the
> concept of using an Options object to load the userconfig.xml file. 
Where I
> get lost is, where in FopServlet does the Options object come in to 
play?
> In other words, how do I pass my Options object to FOP so my fonts can 
be
> used?

You don't. Just instantiate the Options object - it sets static instance 
data.
Yes, it's ugly, but so far it has to be done this way.

Example:

 Options   options;

  // set up FOP options 
  userConfigFile = new File(workPath + File.separator + 
"userconfig.xml");
  options = new Options(userConfigFile);
  fopDriver.setRenderer(Driver.RENDER_PDF);

Hope this helps,

Arnd
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


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




Using Options With Enbedding

2002-04-24 Thread Jim Urban

I understand (I think, I hope) how to add fonts to FOP.  I understand the
concept of using an Options object to load the userconfig.xml file.  Where I
get lost is, where in FopServlet does the Options object come in to play?
In other words, how do I pass my Options object to FOP so my fonts can be
used?

Thanks,
Jim




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