gpt4 book ai didi

java - 在java中打开pdf文件时出现警告

转载 作者:行者123 更新时间:2023-12-02 00:43:59 26 4
gpt4 key购买 nike

我使用 java 程序填充 PDF 表单。我正在使用 Faceless 库进行 pdf 读/写。我不断收到此警告

Annotation 1/175 on page 1 is part of another PDF's form - removing

我尝试压缩 pdf,但没有帮助。有谁知道他们是否遇到过类似的问题以及他们做了什么来删除?

最佳答案

我没有使用过 Faceless,但是来自他们的 faquser manual我能收集到这么多:

您收到的错误消息 (PG1) 表示:

Annotation is part of another PDF's form. The opposite of FE2, this occurs when in the situation described for FE2, you try and render document B. It's saying that a widget on this page is actually the widget for a field in another document. Since a Widget has to have a field, we're not going to render it and it gets deleted.

这里提到的FE2是指:

Annotation for field is on another PDF's page. Like the error above, but this normally occurs when you've been moving pages around between documents. If document A has a page and one form field with an annotation on that page, and then you move the page to document B, when you try and render document A, your form element has an annotation on page no longer in the document. Like FE1, this warning is thrown and the annotation removed.

这似乎也与以下内容有关:

In version 2.0, if you want to copy a form field annotation from one document to another you need to move the FormElement associated with it separately.

但是,如果不查看更多代码,就很难找出到底出了什么问题。使用一些相关的代码片段更新您的问题,我们可以从那里开始工作。

关于java - 在java中打开pdf文件时出现警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5502461/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com