[
https://issues.apache.org/jira/browse/PDFBOX-5637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17748893#comment-17748893
]
Tilman Hausherr edited comment on PDFBOX-5637 at 7/30/23 7:29 AM:
------------------------------------------------------------------
We can't provide the same PDField references than from other PDAcroForm fields
method because we don't keep a cache on them. Another problem is that
{{PDFieldFactory.createField()}} needs a "parent" parameter that we don't have.
So at this time, the method would be somewhat slow, we have to compare the
COSObject references to the ones of PDAcroForm.getFieldTree().
was (Author: tilman):
We can't provide the same PDField references than from other PDAcroForm fields
method because we don't keep a cache on them. Another problem is that
{{PDFieldFactory.createField()}} needs a "parent" parameter that we don't have.
So at this time, the method would be somewhat slow, have to compare the
COSObject references to the ones of PDAcroForm.getFieldTree().
> Add getter and setter for the CO array under PDAcroForm
> -------------------------------------------------------
>
> Key: PDFBOX-5637
> URL: https://issues.apache.org/jira/browse/PDFBOX-5637
> Project: PDFBox
> Issue Type: Improvement
> Components: AcroForm
> Affects Versions: 2.0.29
> Reporter: Gilad Denneboom
> Priority: Minor
> Fix For: 2.0.30, 3.0.0 PDFBox
>
> Attachments: calc order test.pdf
>
>
> The CO-array is a part of the AcroForm object, which defines the order in
> which fields are calculated (see Table 218 in the PDF ISO specs). It contains
> (indirect) references to the calculated fields.
> It would be nice to have a direct getter and setter for it under PDAcroForm.
> Also, if the references could be automatically converted to point to the
> actual PDField objects, that would be great.
> In order to do that, the values from this array need to be compared to those
> returned by the getCOSObject method of the PDField objects returned by the
> getFields methods of PDAcroForm.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]