hyphenation with lang=en error in fop

Here should go questions about transforming XML with XSLT and FOP.
catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

hyphenation with lang=en error in fop

Post by catterall »

Can anyone help me with this please?

The process 'Apache FOP' ended with code: 1.
The error was:
ERROR - Couldn't find hyphenation pattern for lang="en".
ERROR - Exception
org.apache.fop.apps.FOPException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: /Times-Roman
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: /Times-Roman
at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: /Times-Roman
at org.apache.fop.pdf.PDFFont.validate(PDFFont.java:169)
..... etc ......
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: hyphenation with lang=en error in fop

Post by adrian »

Hi,

What version of Oxygen and on what platform (Windows/Mac/Linux) are you running it?

Note that there are actually two errors:
1.

Code: Select all

ERROR - Couldn't find hyphenation pattern for lang="en".
This means the Apache FOP could not find the hyphenation support for the English language (it isn't available by default). This is not a fatal error and unless you actually want your text to be hyphenated, you can ignore it.

2.

Code: Select all

ERROR - Exception
org.apache.fop.apps.FOPException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: /Times-Roman
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: /Times-Roman
at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts, even the base 14 fonts, have to be embedded! Offending font: /Times-Roman
at org.apache.fop.pdf.PDFFont.validate(PDFFont.java:169)
..... etc ......

It appears that you have enabled the option "Generates PDF/A-1b output" from Options > Preferences, XML > XSLT/FO/XQuery > FO Processors. The PDF/A-1b output format has requirements that need plenty of tinkering with the Apache FOP config file. In this particular case you have to configure the FOP to embed the font in question (or map that to a different font that you have).
If you don't need PDF/A-1b in particular, the simplest way out of this is to disable the option I mentioned and thus generate a generic PDF.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

Re: hyphenation with lang=en error in fop

Post by catterall »

Adrian
Thank you, problem solved. I don't know how I ticked that PDF box when I installed XEP on a new machine. Regular PDF is what I want.
Oxygen 16.1, Debian 7.8.0
Ron
Post Reply