问题标签 [icepdf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
6277 浏览

java - PDF to Image 转换大尺寸图片

我正在使用下面的代码将 PDF 转换为 PNG 图像。

myProjectPath是pdf文件的路径。

问题是我有大小为 305 KB 的 pdf 图像。当我使用上面的代码转换图像时,图像大小为 5.5 MB,这是出乎意料的。为什么会发生这种情况?有没有办法压缩这个?如果我得到压缩大小的解决方案(通过缩小像素大小),也可以。

注意:对于其他 pdf 文件,图像将达到 305 KB。一个 PDF 文件会发生这种情况,但不确定为什么会发生这种情况。

编辑 1

我正在使用 jar 文件作为

我的进口是

0 投票
1 回答
3455 浏览

html - 使用 IcePDF 或 PDFBox 从 PDF 生成 HTML 页面

我想使用IcePDFPDFBox从 PDF 中提取内容。但是我现在没有办法HTML从提取的文本和图像中继续生成网页。

0 投票
3 回答
1185 浏览

java - Java 6 下字体显示不正确

我正在使用IcePDF库在 Web 应用程序中显示 PDF。在 Java 6 (jdk1.6.0_37 32bits) 下,字体显示不正确(替换为一些默认字体)

爪哇 6

而在 Java 7 下它看起来还可以。

爪哇 7

我需要在我的应用程序中使用 Java 6,您知道导致这种行为的原因是什么吗?

0 投票
1 回答
1039 浏览

jsf - Java EE PDF 查看器

我有一个JSF/Icefaces项目,目前我正在寻找一个 pdf 查看器。有一个图书馆icepdf,它似乎是一个Swing图书馆。

是否有任何其他基于 Java 的库可用于在 Web 浏览器中查看 pdf 文件?

我们可以icepdf在我的应用程序中将该解决方案用作小程序吗?

0 投票
0 回答
568 浏览

java - Java Pdf Renderer 支持文本选择和剪贴板复制

有谁知道支持文本选择和剪贴板复制pdf隐藏文本层的Java pdf渲染器?

事实上,我正在编写一个 OCR 应用程序,它从扫描仪中获取文档并将它们转换为可搜索的 pdf,我想在我的应用程序中显示结果 pdf。

我已经测试过:

  • IcePDF:支持选择隐藏文本但不支持复制
  • PDFRender,JPedal 根本不支持选择隐藏文本
  • JmuPDF:它支持我想要的一切,但它需要安装一个 dll
0 投票
1 回答
1266 浏览

java - Java DOCX file Viewer

Currently I'm developing an application that allows users to create a template and generate it into a DOCX file. The application needs to be able to display to users the changes in the template as the user is creating it.

The approach I tried was using DOCX4J library (allows manipulation of DOCX file) and ICEPDF which is primarily used to display the DOCX into the swing component by converting it first into a PDF file. Now the problem in this approach is that it loads pretty slow and some of the changes that occurs in the DOCX file does not reflect on the PDF conversion (example: dashed underline, font changes). When I tried to open the DOCX file ouput in MS WORD, the file is viewed correctly so I know changes do occur, but it seems that ICEPDF just can't show it properly.

So I was wondering if anyone knows a java library that allows DOCX files to be viewed directly from a Swing Component instead of converting it first into a PDF file.

0 投票
1 回答
207 浏览

java - 使用icepdf搜索句子并获取行号

我尝试用icepdf搜索句子。大部分时间都得到了正确的结果。但我现在面临的问题是

  • 我无法搜索以一行开头并以下一行结尾的句子。有没有找到相同的解决方案?我尝试将这些句子拆分并单独搜索。但这可能会导致更多问题。

  • 最后,有没有什么方法可以让我知道我得到匹配的搜索键的行号。请帮忙。

0 投票
0 回答
89 浏览

icepdf - 阅读使用 acrobat reader 和 icepdf 创建的注释

我成功地提取了使用 icepdf 查看器创建的高亮注释。

但我的问题是,是否可以提取使用带有 icepdf 的 acrobat reader 创建的突出显示文本?

0 投票
0 回答
1102 浏览

java - pdf中的图像质量不好

我正在使用 icePdf 作为 pdf 查看器。我有一个包含图像的示例 PDF 文件。当我用 icePdf viewer 打开它时,图像质量不是很好。图像不是很清晰。这是代码。谁能建议我如何提高icePDF中的图像质量

0 投票
2 回答
2458 浏览

swingbuilder - 从 icePDF 查看器禁用工具栏

我正在尝试使用 icePDF 的示例。一切正常,但我需要禁用出现在顶部的工具栏。我尝试了几件事,但它不起作用。有人可以帮我解决这个问题。下面是我的代码。