[
https://issues.apache.org/jira/browse/PDFBOX-6179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18067733#comment-18067733
]
Maruan Sahyoun commented on PDFBOX-6179:
----------------------------------------
from PDF 2.0:
{quote}
A field dictionary that does not have a partial field name (T entry) of its own
shall not be considered a
field but simply a Widget annotation. Such annotations are different
representations of the same
underlying field; they should differ only in properties that specify their
visual appearance. In addition,
actual field dictionaries with the same fully qualified field name shall have
the same field type (FT),
value (V), and default value (DV).
{quote}
> Removing fields not possible
> ----------------------------
>
> Key: PDFBOX-6179
> URL: https://issues.apache.org/jira/browse/PDFBOX-6179
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.36, 3.0.7 PDFBox
> Reporter: Stefan Ziegler
> Priority: Major
> Fix For: 2.0.37, 3.0.8 PDFBox, 4.0.0
>
> Attachments: simple_form.pdf
>
>
> Seems that fields can no longer be removed like this:
> PDField field = acroForm.getField("XXXXX");
> List<PDField> fields = acroForm.getFields();
> fields.remove(field);
> Internally, the field is never found. PDField has no equals method. getField
> and getFields create new PDField instances and so equals fails in this case.
> Shouldn't there be an equals method in PDField, that compares the underlying
> COSObject?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]