[ 
https://issues.apache.org/jira/browse/FOP-3203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882750#comment-17882750
 ] 

Justus Piater commented on FOP-3203:
------------------------------------

If I use fop as shipped by Arch Linux with pdfbox 3.x, when trying to load an 
OTF/CFF font it fails:
{quote}Exception in thread "main" java.lang.NoSuchMethodError: 'java.util.List 
org.apache.fontbox.cff.CFFParser.parse(byte[])'
    at org.apache.fop.fonts.truetype.OTFFile.initializeFont(OTFFile.java:103)
    at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:822)
    at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:119)
{quote}
So yes, FOP's incompatibility with pdfbox 3.x does cause problems for FOP users.

If I put the pdfbox 2.0.30 jar into the $CLASSPATH in fop.conf, it uses the 
font without issue.

> Upgrade Apache FOP to PDFBox-3
> ------------------------------
>
>                 Key: FOP-3203
>                 URL: https://issues.apache.org/jira/browse/FOP-3203
>             Project: FOP
>          Issue Type: Improvement
>    Affects Versions: 2.9
>            Reporter: Robert Lichtenberger
>            Priority: Major
>
> PDFBox has released a new major version over a year ago and libraries start 
> to adopt this new version.
> FOP should do so as well to allow applications that use PDFBox-3 to work  
> without dependency collissions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to