RE: MICR font in FOP as an embedded application..

2004-11-04 Thread Anil R. Pinto
Hi Saptarshi,

Hmmm... yes your application need uses the CommanLineOptions class that's
why u mentioned the -c switch.

Well, in my case the process of PDF generation is simple -> XML + XSL = PDF,
in which I have to introduce MICR fonts and I guess the
org.apache.fop.apps.Options will work for me.

But good to know about the CommandLineOptions class, never know when I may
need it.

thanks,
Anil.

-Original Message-
From: Saptarshi Sen [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:12 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Hi Anil,
We are using FOP to convert SVG images -> FO -> PDF. After forming
the FO file, we issue a command to FOP to convert it to a PDF. The call to
FOP goes somewhat like this:

String[] args = new String[]{"-c", userConfigFile, "-fo", inputFile,
"-pdf", outputFile};

try {
CommandLineOptions options = new CommandLineOptions(args);
Starter starter = options.getStarter();
starter.run();

} catch (FOPException fopEx) {
} catch (FileNotFoundException fnfEx) {
}

Here, userConfigFile, inputFile and outputFile are the paths of the
respective files. If you check the Fop.java source code, it does a similar
thing in it's main() method.

Regards,
Saptarshi.

-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Thanks guys,

As the userconfig xml within the jar s not being used, I guess I'll stick to
the approach mentioned by Saptarshi, which hapens to also be the one
suggested on the Apache FOP website, except one thing, in the embedded mode
we need to use the org.apache.fop.apps.Options class that represents the
'-c' switch used for the command line option.

If anyone has any other approach I'll be more than happy to hear from them.

Thanks everyone.
Anil

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 7:35 PM
To: [EMAIL PROTECTED]
Subject: Re: MICR font in FOP as an embedded application..


Anil R. Pinto wrote:



> But, the main requirement is to use this behavior with FOp running as an
> embeded application (using fop.jar).
>
> Can someone please guide me to a thread that covers this ?

How to use a config file in an embedded environment is described on the
website:

http://xml.apache.org/fop/embedding.html#config-external

>
> I am lost as to where should the custom font-metrics xml and
userconfig.xml
> file reside when using the standard fop.jar (as the userconfig.xml already
> exists in the jar)

Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!



Chris


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



RE: MICR font in FOP as an embedded application..

2004-11-04 Thread Saptarshi Sen
Hi Anil,
We are using FOP to convert SVG images -> FO -> PDF. After forming
the FO file, we issue a command to FOP to convert it to a PDF. The call to
FOP goes somewhat like this:

String[] args = new String[]{"-c", userConfigFile, "-fo", inputFile,
"-pdf", outputFile};

try {
CommandLineOptions options = new CommandLineOptions(args);
Starter starter = options.getStarter();
starter.run();

} catch (FOPException fopEx) {
} catch (FileNotFoundException fnfEx) { 
}

Here, userConfigFile, inputFile and outputFile are the paths of the
respective files. If you check the Fop.java source code, it does a similar
thing in it's main() method.

Regards,
Saptarshi.

-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Thanks guys,

As the userconfig xml within the jar s not being used, I guess I'll stick to
the approach mentioned by Saptarshi, which hapens to also be the one
suggested on the Apache FOP website, except one thing, in the embedded mode
we need to use the org.apache.fop.apps.Options class that represents the
'-c' switch used for the command line option.

If anyone has any other approach I'll be more than happy to hear from them.

Thanks everyone.
Anil

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 7:35 PM
To: [EMAIL PROTECTED]
Subject: Re: MICR font in FOP as an embedded application..


Anil R. Pinto wrote:



> But, the main requirement is to use this behavior with FOp running as an
> embeded application (using fop.jar).
>
> Can someone please guide me to a thread that covers this ?

How to use a config file in an embedded environment is described on the
website:

http://xml.apache.org/fop/embedding.html#config-external

>
> I am lost as to where should the custom font-metrics xml and
userconfig.xml
> file reside when using the standard fop.jar (as the userconfig.xml already
> exists in the jar)

Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!



Chris


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

-
Disclaimer
-

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

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

RE: MICR font in FOP as an embedded application..

2004-11-04 Thread Anil R. Pinto
Thanks guys,

As the userconfig xml within the jar s not being used, I guess I'll stick to
the approach mentioned by Saptarshi, which hapens to also be the one
suggested on the Apache FOP website, except one thing, in the embedded mode
we need to use the org.apache.fop.apps.Options class that represents the
'-c' switch used for the command line option.

If anyone has any other approach I'll be more than happy to hear from them.

Thanks everyone.
Anil

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 7:35 PM
To: [EMAIL PROTECTED]
Subject: Re: MICR font in FOP as an embedded application..


Anil R. Pinto wrote:



> But, the main requirement is to use this behavior with FOp running as an
> embeded application (using fop.jar).
>
> Can someone please guide me to a thread that covers this ?

How to use a config file in an embedded environment is described on the
website:

http://xml.apache.org/fop/embedding.html#config-external

>
> I am lost as to where should the custom font-metrics xml and
userconfig.xml
> file reside when using the standard fop.jar (as the userconfig.xml already
> exists in the jar)

Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!



Chris


-
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: MICR font in FOP as an embedded application..

2004-11-03 Thread Chris Bowditch
Anil R. Pinto wrote:

But, the main requirement is to use this behavior with FOp running as an
embeded application (using fop.jar).
Can someone please guide me to a thread that covers this ?
How to use a config file in an embedded environment is described on the 
website:
http://xml.apache.org/fop/embedding.html#config-external
I am lost as to where should the custom font-metrics xml and userconfig.xml
file reside when using the standard fop.jar (as the userconfig.xml already
exists in the jar)
Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!

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


RE: MICR font in FOP as an embedded application..

2004-11-03 Thread Saptarshi Sen
Hi Anil,
I doubt if the font metrics files can be packaged into the fop.jar.
In fact, for custom fonts, you require the metrics file as well as the
ttf/ttc files. If included, these can make your jar very bulky too.

As far as the userconfig.xml file is concerned, you can try to
extract the userconfig.xml that exists in the jar and replace it with your
own. I believe, that should work. 

I guess, other users on this list might be able to throw some light
on this issue.

Regards,
Saptarshi.

-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 6:38 PM
To: [EMAIL PROTECTED]
Subject: FW: MICR font in FOP as an embedded application..




-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 6:35 PM
To: Saptarshi Sen
Subject: RE: MICR font in FOP as an embedded application..


Saptarshi,

Thanks a bunch for the quick reply. I had a few doubts though.

Do the font-metrics xml and userconfig xml files have to be external to the
fop.jar ?

Is it possible that the fop.jar itself already contains the required files
(font metrics xml and modified userconfig.xml) and those can be picked up
implicitly by the FOP classes ?

Can anyone in the FOP development team throw some light on the above
requirement ? I want to avoid having any external dependencies (in this case
a separate folder containing the font metrics and userconfig xmls).

Once again Saptarashi thanks for the quick response :-)

Anil.

-Original Message-
From: Saptarshi Sen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 6:02 PM
To: [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Hi Anil,
We're using custom fonts in our application which uses FOP ver 0.20.5
embedded within it.

1. We store the font files (xml and ttf) in some directory (say
c:\myFonts).
2. The userconfig.xml file has a key called . Specify
the value for this key as c:\myFonts.
3. Also register your custom fonts by making entries in
userconfig.xml (similar to what exists for the standard fonts).
4. In your application, issue the command to FOP specifying the
location of this userconfig.xml file (using the -c switch).

Hope this helps.

Regards,
Saptarshi.


-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: MICR font in FOP as an embedded application..


Hi,

I have a need to create MICR type fonts within PDF document produced by FOP
(0.20.3).

I was able to do that using FOP through the command line. Following all the
steps as mentioned in http://xml.apache.org/fop/fonts.html

I ran the FOP command to create the font-metrics xml file and referenced it
within the conf/userconfig.xml and FOP successfully integrated the font in
the PDF output.

But, the main requirement is to use this behavior with FOp running as an
embeded application (using fop.jar).

Can someone please guide me to a thread that covers this ?

I am lost as to where should the custom font-metrics xml and userconfig.xml
file reside when using the standard fop.jar (as the userconfig.xml already
exists in the jar)

If anyone can help in his regard I'll really appreciate it.

thanks for your time.
Anil.



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

-
Disclaimer
-

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

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

FW: MICR font in FOP as an embedded application..

2004-11-03 Thread Anil R. Pinto


-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 6:35 PM
To: Saptarshi Sen
Subject: RE: MICR font in FOP as an embedded application..


Saptarshi,

Thanks a bunch for the quick reply. I had a few doubts though.

Do the font-metrics xml and userconfig xml files have to be external to the
fop.jar ?

Is it possible that the fop.jar itself already contains the required files
(font metrics xml and modified userconfig.xml) and those can be picked up
implicitly by the FOP classes ?

Can anyone in the FOP development team throw some light on the above
requirement ? I want to avoid having any external dependencies (in this case
a separate folder containing the font metrics and userconfig xmls).

Once again Saptarashi thanks for the quick response :-)

Anil.

-Original Message-
From: Saptarshi Sen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 6:02 PM
To: [EMAIL PROTECTED]
Subject: RE: MICR font in FOP as an embedded application..


Hi Anil,
We're using custom fonts in our application which uses FOP ver 0.20.5
embedded within it.

1. We store the font files (xml and ttf) in some directory (say
c:\myFonts).
2. The userconfig.xml file has a key called . Specify
the value for this key as c:\myFonts.
3. Also register your custom fonts by making entries in
userconfig.xml (similar to what exists for the standard fonts).
4. In your application, issue the command to FOP specifying the
location of this userconfig.xml file (using the -c switch).

Hope this helps.

Regards,
Saptarshi.


-Original Message-
From: Anil R. Pinto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: MICR font in FOP as an embedded application..


Hi,

I have a need to create MICR type fonts within PDF document produced by FOP
(0.20.3).

I was able to do that using FOP through the command line. Following all the
steps as mentioned in http://xml.apache.org/fop/fonts.html

I ran the FOP command to create the font-metrics xml file and referenced it
within the conf/userconfig.xml and FOP successfully integrated the font in
the PDF output.

But, the main requirement is to use this behavior with FOp running as an
embeded application (using fop.jar).

Can someone please guide me to a thread that covers this ?

I am lost as to where should the custom font-metrics xml and userconfig.xml
file reside when using the standard fop.jar (as the userconfig.xml already
exists in the jar)

If anyone can help in his regard I'll really appreciate it.

thanks for your time.
Anil.



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



MICR font in FOP as an embedded application..

2004-11-03 Thread Anil R. Pinto
Hi,

I have a need to create MICR type fonts within PDF document produced by FOP
(0.20.3).

I was able to do that using FOP through the command line. Following all the
steps as mentioned in http://xml.apache.org/fop/fonts.html

I ran the FOP command to create the font-metrics xml file and referenced it
within the conf/userconfig.xml and FOP successfully integrated the font in
the PDF output.

But, the main requirement is to use this behavior with FOp running as an
embeded application (using fop.jar).

Can someone please guide me to a thread that covers this ?

I am lost as to where should the custom font-metrics xml and userconfig.xml
file reside when using the standard fop.jar (as the userconfig.xml already
exists in the jar)

If anyone can help in his regard I'll really appreciate it.

thanks for your time.
Anil.



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