条形码扩展问题 - XSLT XSLFO

问题描述

在尝试使用以下命令创建条形码时:barcode4j-fop-ext-complete.jar,在我的计算机上使用命令 ..\fop-2.5-bin\fop-2.5\fop\fop.bat -c config1.xml -xml 6314587.xml -xsl stylesheet.xsl output.pdf 在本地创建,我收到此错误

Exception in thread "main" java.lang.IncompatibleClassChangeError: class 
org.krysalis.barcode4j.fop0205.BarcodeElementMapping can not implement 
org.apache.fop.fo.ElementMapping,because it is not an interface (org.apache.fop.fo.ElementMapping is in unnamed module of loader 'app')

有人遇到过这个问题吗?我该如何解决

我的样式表是否有条形码实现,如下所示:

                        <fo:block-container>
                            <fo:block>
                                <fo:block>
                                    <fo:instream-foreign-object>
                                        <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" message="123" orientation="90">
                                            <barcode:code128>
                                                <barcode:height>8mm</barcode:height>
                                            </barcode:code128>
                                        </barcode:barcode>
                                    </fo:instream-foreign-object>
                                </fo:block>
                            </fo:block>
                        </fo:block-container>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)