Not sure why you say it was not related... It is related because what this array contains are indirect references to the fields, and I thought the field objects themselves could be accessed using the reference numbers. It turns out not to be the case, but it's still relevant.
On Sat, Jul 15, 2023 at 1:50 PM Tilman Hausherr <thaush...@t-online.de> wrote: > On 15.07.2023 11:04, Gilad Denneboom wrote: > > The CO-array (no spelling-mistake) is a part of the AcroForm object, > which > > defines the order in which fields are calculated (see Table 218 in the > PDF > > ISO specs). But it only contains (indirect) references to the fields. > > > > However, your tip put me on the right path and I was able to get the > actual > > PDField objects by comparing the values in this array to the > > values returned by the getCOSObject method of the PDFields under > PDAcroForm. > > > > It would actually be nice to have a direct getter and setter for it under > > PDAcroForm... Maybe in future versions? > > So your image had nothing to do with your request. > > Please share such a PDF. It should be possible to make such a change, > and wouldn't be difficult. The only problem is that the PD object > wouldn't be the same PD object than when received from AcroForm (but > still the same COSObject). > > Tilman > > PS I've just tried to unsubscribe that annoying user using my moderator > status but haven't received a confirmation. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >