hyphenation with lang=en error in fop
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 63
- Joined: Sat Jan 24, 2004 12:10 am
- Location: Oaxaca, Mexico
- Contact:
hyphenation with lang=en error in fop
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 ......
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 ......
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: hyphenation with lang=en error in fop
Hi,
What version of Oxygen and on what platform (Windows/Mac/Linux) are you running it?
Note that there are actually two errors:
1. 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.
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
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".
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 63
- Joined: Sat Jan 24, 2004 12:10 am
- Location: Oaxaca, Mexico
- Contact:
Re: hyphenation with lang=en error in fop
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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service