xsl-fo - 条形码扩展问题 - 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>
解决方案
推荐阅读
- powershell - 如何在employeeID = X的AD中获取employeeID属性的计数
- ruby-on-rails - 通过多个 URL 提供相同的 PDF 而不复制它?
- performance - 关于评估gem5的HPI核心模型的问题
- javascript - 需要生成 1 - 3 之间的随机数并需要设置 3 个变量
- python - 为什么在使用 django 通用视图时出现错误?
- android - 我可以在伴生对象中共享 ViewModel 吗?
- java - File.canWrite() 重新分配后返回 false
- flutter - Flutter 在登录时显示微调器
- oracle - oracle apex 中的 URL 目标
- r - “如何获取字符串列表并根据另一列中的字符串插入新的数据框列?”