RE: FOP servelet - font config

2014-10-06 Thread Clifford, Paul
Just a follow up here: my issue was resolved by adding the path to fop.xconf to 
CLASSPATH.

Paul

From: Clifford, Paul [mailto:pcliff...@heico.com]
Sent: Tuesday, September 30, 2014 10:18 AM
To: fop-users@xmlgraphics.apache.org
Subject: FOP servelet - font config

I am having trouble using a custom font when running the examples via the 
servlet.

If I  create a pdf from the example:
java -cp %CLASSPATH% org.apache.fop.cli.Main -c c:\fop-1.1\conf\fop.xconf 
c:\fop-1.1\examples\embedding\xml\fo\helloworld.fo -pdf report.pdf

It renders perfectly, with my font.

helloworld.fo has been slightly modified to contain my custom font :
Hello 
World!

However, when I call  this via the servlet, it renders but with no custom font:
http://localhost:8080/fop/fop?fo=c:\fop-1.1\examples\embedding\xml\fo\helloworld.fo

30-Sep-2014 10:10:45.742 WARNING [http-nio-8080-exec-1] 
org.apache.fop.events.LoggingEventListener.processEvent Font 
"Monospac821,normal,400" not found. Substituting with "any,normal,400".

How can I get my config file to be recognized in the servlet?  I am rather new 
to JAVA so a step by step would be greatly appreciated!

C:\fop-1.1\conf\fop.xconf


  

  

  


  



  


Paul Clifford

DISCLAIMER:
The information contained in this e-mail and its attachments are intended 
solely for the use of the individual (s) to whom it is addressed and contains 
information that is confidential and the property of HEICO Corporation or one 
of its subsidiaries. If the reader of this e-mail is not the intended 
recipient, you are hereby notified that any dissemination, distribution, or 
copying of this e-mail is strictly prohibited. If you have received this e-mail 
in error, please notify us immediately and destroy the e-mail. Thank you.

DISCLAIMER:
The information contained in this e-mail and its attachments are intended 
solely for the use of the individual (s) to whom it is addressed and contains 
information that is confidential and the property of HEICO Corporation or one 
of its subsidiaries. If the reader of this e-mail is not the intended 
recipient, you are hereby notified that any dissemination, distribution, or 
copying of this e-mail is strictly prohibited. If you have received this e-mail 
in error, please notify us immediately and destroy the e-mail. Thank you.


FOP servelet - font config

2014-09-30 Thread Clifford, Paul
I am having trouble using a custom font when running the examples via the 
servlet.

If I  create a pdf from the example:
java -cp %CLASSPATH% org.apache.fop.cli.Main -c c:\fop-1.1\conf\fop.xconf 
c:\fop-1.1\examples\embedding\xml\fo\helloworld.fo -pdf report.pdf

It renders perfectly, with my font.

helloworld.fo has been slightly modified to contain my custom font :
Hello 
World!

However, when I call  this via the servlet, it renders but with no custom font:
http://localhost:8080/fop/fop?fo=c:\fop-1.1\examples\embedding\xml\fo\helloworld.fo

30-Sep-2014 10:10:45.742 WARNING [http-nio-8080-exec-1] 
org.apache.fop.events.LoggingEventListener.processEvent Font 
"Monospac821,normal,400" not found. Substituting with "any,normal,400".

How can I get my config file to be recognized in the servlet?  I am rather new 
to JAVA so a step by step would be greatly appreciated!

C:\fop-1.1\conf\fop.xconf


  

  

  


  



  


Paul Clifford

DISCLAIMER:
The information contained in this e-mail and its attachments are intended 
solely for the use of the individual (s) to whom it is addressed and contains 
information that is confidential and the property of HEICO Corporation or one 
of its subsidiaries. If the reader of this e-mail is not the intended 
recipient, you are hereby notified that any dissemination, distribution, or 
copying of this e-mail is strictly prohibited. If you have received this e-mail 
in error, please notify us immediately and destroy the e-mail. Thank you.


Re: FOnt config

2014-06-05 Thread Pascal Sancho
Hi,


Fop 0.20.x was an old design where font features were quite different
from current Fop releases:
IIRC, regarding this old version:
 - no support for auto-detect
 - no support for directory
 - metric-files required
 - etc.

Fop 0.20.x doc can be found in archives, at [1].
I strongly encourage you to update Fop with the latest release. See [2].

[1] 
https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_20_5/src/documentation/
[2] http://xmlgraphics.apache.org/fop/1.1/upgrading.html#pre-1.0

2014-06-04 18:17 GMT+02:00 Donald Paul Winston :
> FOP 0.20.5
>
> oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf file
> which jives with what I see in the examples.
>
>
>
>
> On Jun 4, 2014, at 12:06 PM, Amick, Eric  wrote:
>
> I use auto-detect with no difficulty, and I'm sure plenty of people use the
> other features as well. Which version of FOP are you using? You should
> probably post the actual config file you're using.
>
> -Original Message-
> From: Donald Paul Winston [mailto:satchwins...@yahoo.com]
> Sent: Wednesday, June 04, 2014 11:56
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOnt config
>
> This does not work.
>
> 
>
>  C:\MyFonts1
>
>
>  C:\MyFonts2
>
>
>  
> 
>
> the DTD does not support "directory" or "auto-detect"
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>



-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOnt config

2014-06-04 Thread Marc

I answer because I use an ean13 not a Code39, but 
I use the apache font converter to do metrics (with TTFReader if I 
remember me) and my conf file has in  the lines :
   kerning="yes" embed-url="file:///E:/fonts/ean13.ttf">

 
 
   
Marc

Le mercredi 4 juin 2014 20:05:13, Donald Paul Winston a écrit :

I found a True Type barcode font that works(Archon Code 39 Barcode).
The Code39.pfa/Code30.afm needs extra configuration to get it to work.
Thanks

Donald Paul Winston




On Jun 4, 2014, at 12:17 PM, Donald Paul Winston
mailto:satchwins...@yahoo.com.INVALID>> wrote:


FOP 0.20.5

oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf
file which jives with what I see in the examples.




On Jun 4, 2014, at 12:06 PM, Amick, Eric mailto:eric.am...@mail.house.gov>> wrote:


I use auto-detect with no difficulty, and I'm sure plenty of people
use the other features as well. Which version of FOP are you using?
You should probably post the actual config file you're using.

-Original Message-
From: Donald Paul Winston [mailto:satchwins...@yahoo.com]
Sent: Wednesday, June 04, 2014 11:56
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org>
Subject: Re: FOnt config

This does not work.



 C:\MyFonts1


 C:\MyFonts2


 


the DTD does not support "directory" or "auto-detect"



--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
Sent from the FOP - Users mailing list archive at Nabble.com
<http://nabble.com/>.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
<mailto:fop-users-h...@xmlgraphics.apache.org>


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org
<mailto:fop-users-h...@xmlgraphics.apache.org>







-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOnt config

2014-06-04 Thread Donald Paul Winston
I found a True Type barcode font that works(Archon Code 39 Barcode). The 
Code39.pfa/Code30.afm needs extra configuration to get it to work.
Thanks

Donald Paul Winston




On Jun 4, 2014, at 12:17 PM, Donald Paul Winston 
 wrote:

> FOP 0.20.5
> 
> oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf file 
> which jives with what I see in the examples.
> 
> 
> 
> 
> On Jun 4, 2014, at 12:06 PM, Amick, Eric  wrote:
> 
>> I use auto-detect with no difficulty, and I'm sure plenty of people use the 
>> other features as well. Which version of FOP are you using? You should 
>> probably post the actual config file you're using.
>> 
>> -Original Message-
>> From: Donald Paul Winston [mailto:satchwins...@yahoo.com] 
>> Sent: Wednesday, June 04, 2014 11:56
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: FOnt config
>> 
>> This does not work.
>> 
>> 
>> 
>>  C:\MyFonts1
>> 
>> 
>>  C:\MyFonts2
>> 
>> 
>>  
>> 
>> 
>> the DTD does not support "directory" or "auto-detect"
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>> 
>> 
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>> 
> 



Re: FOnt config

2014-06-04 Thread Rob Sargent
copy (or link) each of the ones FOP needs (from your first post) to your 
dir.


That stack trace might be interesting too, since it shouldn't really 
beloading the unreferenced fonts.


On 06/04/2014 11:26 AM, Donald Paul Winston wrote:
There's  a zillion fonts in System/Library/Fonts that Apache FOP does 
not support and I get a stack trace saying I ran out of heap space.


Donald Paul Winston




On Jun 4, 2014, at 1:12 PM, Rob Sargent > wrote:



system default directory






Re: FOnt config

2014-06-04 Thread Donald Paul Winston
There's  a zillion fonts in System/Library/Fonts that Apache FOP does not 
support and I get a stack trace saying I ran out of heap space.

Donald Paul Winston




On Jun 4, 2014, at 1:12 PM, Rob Sargent  wrote:

> system default directory



Re: FOnt config

2014-06-04 Thread Rob Sargent

Don't worry about the metrics.
Add the system default directory. (Last I saw you were not finding Times 
Roman.)



On 06/04/2014 10:59 AM, Donald Paul Winston wrote:

My fop.xconf is has the following:


  

flate







  

  
/Users/satchwinston/fonts
…….
…….

I use the ./fop -c conf/fop.xconf …   and it still can’t find it 
font-family=“Code39” (Code39.pfa / Code39.afm)


Do I need to setup a font metrics file? And then configure for that?

Donald Paul Winston




On Jun 4, 2014, at 12:17 PM, Donald Paul Winston 
<mailto:satchwins...@yahoo.com.INVALID>> wrote:



FOP 0.20.5

oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf 
file which jives with what I see in the examples.





On Jun 4, 2014, at 12:06 PM, Amick, Eric <mailto:eric.am...@mail.house.gov>> wrote:


I use auto-detect with no difficulty, and I'm sure plenty of people 
use the other features as well. Which version of FOP are you using? 
You should probably post the actual config file you're using.


-Original Message-
From: Donald Paul Winston [mailto:satchwins...@yahoo.com]
Sent: Wednesday, June 04, 2014 11:56
To: fop-users@xmlgraphics.apache.org 
<mailto:fop-users@xmlgraphics.apache.org>

Subject: Re: FOnt config

This does not work.



 C:\MyFonts1


 C:\MyFonts2


 


the DTD does not support "directory" or "auto-detect"



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
Sent from the FOP - Users mailing list archive at Nabble.com 
<http://nabble.com/>.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
For additional commands, e-mail: 
fop-users-h...@xmlgraphics.apache.org 
<mailto:fop-users-h...@xmlgraphics.apache.org>



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
For additional commands, e-mail: 
fop-users-h...@xmlgraphics.apache.org 
<mailto:fop-users-h...@xmlgraphics.apache.org>










Re: FOnt config

2014-06-04 Thread Donald Paul Winston
My fop.xconf is has the following:


  

flate






  

  
/Users/satchwinston/fonts
…….
…….

I use the ./fop -c conf/fop.xconf …   and it still can’t find it 
font-family=“Code39” (Code39.pfa / Code39.afm)

Do I need to setup a font metrics file? And then configure for that?

Donald Paul Winston




On Jun 4, 2014, at 12:17 PM, Donald Paul Winston 
 wrote:

> FOP 0.20.5
> 
> oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf file 
> which jives with what I see in the examples.
> 
> 
> 
> 
> On Jun 4, 2014, at 12:06 PM, Amick, Eric  wrote:
> 
>> I use auto-detect with no difficulty, and I'm sure plenty of people use the 
>> other features as well. Which version of FOP are you using? You should 
>> probably post the actual config file you're using.
>> 
>> -Original Message-
>> From: Donald Paul Winston [mailto:satchwins...@yahoo.com] 
>> Sent: Wednesday, June 04, 2014 11:56
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: FOnt config
>> 
>> This does not work.
>> 
>> 
>> 
>>  C:\MyFonts1
>> 
>> 
>>  C:\MyFonts2
>> 
>> 
>>  
>> 
>> 
>> the DTD does not support "directory" or "auto-detect"
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>> 
>> 
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>> 
> 



Re: FOnt config

2014-06-04 Thread Donald Paul Winston
FOP 0.20.5

oops, I don’t know where I got this. I see FOP 1-1 has an fop.xconf file which 
jives with what I see in the examples.




On Jun 4, 2014, at 12:06 PM, Amick, Eric  wrote:

> I use auto-detect with no difficulty, and I'm sure plenty of people use the 
> other features as well. Which version of FOP are you using? You should 
> probably post the actual config file you're using.
> 
> -Original Message-
> From: Donald Paul Winston [mailto:satchwins...@yahoo.com] 
> Sent: Wednesday, June 04, 2014 11:56
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOnt config
> 
> This does not work.
> 
> 
> 
>  C:\MyFonts1
> 
> 
>  C:\MyFonts2
> 
> 
>  
> 
> 
> the DTD does not support "directory" or "auto-detect"
> 
> 
> 
> --
> View this message in context: 
> http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 



RE: FOnt config

2014-06-04 Thread Amick, Eric
I use auto-detect with no difficulty, and I'm sure plenty of people use the 
other features as well. Which version of FOP are you using? You should probably 
post the actual config file you're using.

-Original Message-
From: Donald Paul Winston [mailto:satchwins...@yahoo.com] 
Sent: Wednesday, June 04, 2014 11:56
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOnt config

This does not work.


  
  C:\MyFonts1

  
  C:\MyFonts2

  
  


the DTD does not support "directory" or "auto-detect"



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOnt config

2014-06-04 Thread Donald Paul Winston
This does not work.


  
  C:\MyFonts1

  
  C:\MyFonts2

  
  


the DTD does not support "directory" or "auto-detect"



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743p40744.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



FOnt config

2014-06-04 Thread Donald Paul Winston
In my installation I have a config.xml and userconfig.xml.

I'd like to add a Code39 font (Code39.pfa)

How do I do this?

./fop.sh -c conf/userconfig.xml -xml US20140137301P1-20140515.XML -xsl
masthead.xsl -pdf masthead.pdf

[ERROR] unknown font Times New Roman,normal,bold so defaulted font to any
[ERROR] unknown font Times New Roman,normal,normal so defaulted font to any
[ERROR] unknown font Times New Roman,normal,bold so defaulted font to any
[ERROR] unknown font Times New Roman,normal,bold so defaulted font to any
[ERROR] unknown font Times New Roman,normal,normal so defaulted font to any
[ERROR] unknown font Times New Roman,normal,bold so defaulted font to any
[ERROR] unknown font Code39,normal,normal so defaulted font to any
[ERROR] unknown font Code39,normal,normal so defaulted font to any



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOnt-config-tp40743.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org