Jeremias,

That gets me a little further.

Fop now says

SEVERE: file:///c:/temp/lala.fo:9:42: No conversion defined 40;
property:'height'

A PDF is however created and when I open it, Acrobat Reader complains PDF
with
"The font 'IDAutomationC39S' contains bad /Flags."

A document is however opened which does contain "a" barcode.

Note that I am not necessarily in a big hurry, so if you say "I'm sure it
can be made to work with some coding but right now" is there anything I can
do to actually make it work?

Thanks,

Peter

> -----Original Message-----
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 30, 2006 7:41 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: NPE IN SingleByteFont.hasChar when using IDAutomationC39S
> font
> 
> The problem is the "UnknownEncoding" in the XML. FOP did not recognize
> the encoding and can't handle a font like that. I'm sure it can be made
> to work with some coding but right now, the only thing you can try is to
> replace "UnknownEncoding" with "StandardEncoding" and check if it works.
> Otherwise, you should check out http://barcode4j.sourceforge.net as an
> alternative.
> 
> On 30.11.2006 00:56:54 Peter wrote:
> > Thanks for the reply,
> >
> > I started from a Type1 font for which, I have the impression, the -enc
> ansi
> > option is not supported/relevant.
> >
> > Attached the metrics file.
> >
> > All guidance where to look is appreciated,
> >
> > Thanks,
> >
> > Peter
> >
> > > -----Original Message-----
> > > From: J.Pietschmann [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, November 29, 2006 11:32 PM
> > > To: fop-users@xmlgraphics.apache.org
> > > Subject: Re: NPE IN SingleByteFont.hasChar when using IDAutomationC39S
> > > font
> > >
> > > Peter wrote:
> > > > I am trying to use a Barcode font (IDAutomationC39S) and I am
> getting an
> > > NPE
> > > > with the following trace listed lower.
> > >
> > > Barcode fonts are tricky, because barcode glyphs are not separate
> > > unicode glyphs.
> > > It seems that the encoding for your font is unknown. Try to generate
> > > the font metrics using the -enc ansi, although I think you did this
> > > already. Would you mind sending in your metrics file?
> > >
> > > If all else fails, try the barcode4j extension or generate a SVG
> > > for the barcode and use this (there are XSLT style sheets out there
> > > for this purpose).
> > >
> > > J.Pietschmann
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to