I'm pretty new to this, but I think your config file needs another set
of tags. It should look like this:

<configuration>
  <fonts>
    <font>
       (font information...)
    </font>
    <font>
       (font information...)
    </font>
        (etc)
  </fonts>
</configuration>

You forgot the "fonts" tag.

-Katie

> -----Original Message-----
> From: Nuno Lopes [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 10, 2004 5:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: generating PDFs in non-english
> 
> 
> Thanks for your help, but now I get an error in FOP:
> 
> $ ../../phpdoc-tools/fop/fop.bat -c fop/ru.cfg -fo manual.fo 
> -pdf manual.pdf [INFO] Using 
> org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] 
> Using org.apache.xerces.parsers.SAXParser as SAX2 Parser 
> Exception in thread "main" java.lang.NullPointerException
>         at 
> org.apache.fop.configuration.ConfigurationParser.startElement(
> ConfigurationP
> arser.java:173)
>         at 
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartEleme
> nt(Unknown
> Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
> ContentDispatc
> her.dispatch(Unknown Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> ment(Unknown
> Source)
>         at 
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at 
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at 
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at 
> org.apache.fop.configuration.ConfigurationReader.start(Configu
> rationReader.j
> ava:114)
>         at
> org.apache.fop.apps.Options.loadUserconfiguration(Options.java:220)
>         at
> org.apache.fop.apps.Options.loadUserconfiguration(Options.java:204)
>         at
> org.apache.fop.apps.Options.setCommandLineOptions(Options.java:116)
>         at
> org.apache.fop.apps.CommandLineStarter.<init>(CommandLineStart
> er.java:75)
>         at 
> org.apache.fop.apps.CommandLineOptions.getStarter(CommandLineO
> ptions.java:52
> 2)
>         at org.apache.fop.apps.Fop.main(Fop.java:61)
> 
> 
> 
> and my fop/ru.cfg:
> <configuration>
>   <font metrics-file="bkkoi8n.xml" embed-file="bkkoi8n.ttf">
>     <font-triplet name="serif" style="normal" weight="normal"/>
>     <font-triplet name="serif" style="italic" weight="normal"/>
>     <font-triplet name="serif" style="normal" weight="bold"/>
>     <font-triplet name="serif" style="italic" weight="bold"/>
> 
>     <font-triplet name="sans-serif" style="normal" weight="normal"/>
>     <font-triplet name="sans-serif" style="italic" weight="normal"/>
>     <font-triplet name="sans-serif" style="normal" weight="bold"/>
>     <font-triplet name="sans-serif" style="italic" weight="bold"/>
>   </font>
> </configuration>
> 
> 
> The bkkoi8n.xml was generated by FOP.
> 
> 
> Can you help me, please?
> 
> Thanks,
> Nuno
> 
> 
> ---------------------------------------------------------------------
> 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