PDFBox - 使用 IKVM 构建最新版本的 .NET

发布于 2024-09-14 02:36:10 字数 788 浏览 4 评论 0原文

我想构建最新版本的 PDFBox (http://pdfbox.apache.org/userguide /dot_net.html),用于我的 .NET 项目。

我对 Java 没有任何经验,但我正在使用此处定义的步骤: http://www.ikvm.net/userguide/tutorial.html

我正在使用以下版本:
- IKVM (0.42.0.6)
- PDFBox (1.2.1) JAR 文件

问题是,当我尝试创建 DLL 时,会显示一系列错误消息 - 即“java.lang.NoClassDefFoundError”。我在这里面临与作者相同的问题(如何使用 IKVM 在 .net / C# 环境中使用 PDFBox 1.0)并尝试了建议的修复 - "lkvmc.exe -target:library -out:"[输出路径]\netpdfbox.dll" "[ PDFBox Path]*.jar”,但结果是相同的 - 错误消息仍然显示。

提前致谢,

Jose

I would like to build the latest version of PDFBox (http://pdfbox.apache.org/userguide/dot_net.html) for use within my .NET project.

I have no experience with Java whatsoever but I am using the steps defined here:
http://www.ikvm.net/userguide/tutorial.html

I am using the following versions:
- IKVM (0.42.0.6)
- PDFBox (1.2.1) JAR file

The problem is that when I try to create the DLL a series of error messages are displayed - i.e. "java.lang.NoClassDefFoundError". I am facing the same problem as the author here (How to use PDFBox 1.0 in .net / C# environment using IKVM) and tried the fix suggested - "lkvmc.exe -target:library -out:"[Output Path]\netpdfbox.dll" "[PDFBox Path]*.jar" but the result is the same - the error messages are still displayed.

Thanks in advance,

Jose

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时间你老了 2024-09-21 02:36:10

还有一个新站点将为每个 PDFBox 版本发布 .NET DLL,直到实际项目开始发布官方 .NET 版本。到目前为止,他们只有 1.6.0(撰写本文时的最新版本),但希望他们能坚持下去。请参阅http://pdfbox.lehmi.de

There is also a new site that will be releasing .NET DLLs for every PDFBox release until the actual project begins doing an official .NET release. So far they only have 1.6.0 (the latest version at the time of this writing), but hopefully they keep it up. See http://pdfbox.lehmi.de

戏舞 2024-09-21 02:36:10

您必须在类路径中包含所有需要的 *.jar 文件。我使用相同的设置翻译了最新版本,主要问题是没有默认的日志类,因此我包含了 log4j 的 jar,看起来现在工作正常,但我只是进行文本提取。 0.7.3 版本在某些 PDF 文件上抛出异常,而这个新版本在相同的 PDF 文件上运行正常。您可以从以下位置下载 dll:

http://www.antoniob.com/ pdfbox-121-for-net-binaries.aspx

You have to include all needed *.jar files in classpath. I translated latest version with same setup and main problem was that there were no default log class, so I included jar's for log4j and it seems that now is working OK, but I was only doing text extraction. And version 0.7.3 was throwing exceptions on some PDF files and this new build works OK on same PDF files. You can download dll's from :

http://www.antoniob.com/pdfbox-121-for-net-binaries.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文