The CO array contains COSObjects, yes, but they seem to be quite oblique, with nothing more than a reference number. Are you saying I can use the COSObject itself to find the field? If so, how? Note I'm not trying to create new fields, just locate the existing ones referenced in this array.
On Sat, Jul 15, 2023 at 4:15 AM Tilman Hausherr <thaush...@t-online.de> wrote: > How did you get the indirect number in the first place? > > Normally this would be a COSObject and you can dereference that one by > calling getObject() and here it would be a COSDictionary. You can pass > this to PDField.createField(). > > Tilman > > On 14.07.2023 20:54, Gilad Denneboom wrote: > > Hi all, > > > > I'm trying to see if there's a way to get a field's name using PDFBox > based > > on the Indirect Reference number to it. > > Namely, the numbers that are used in the CO array of the AcroForm > object. I > > can see those numbers in the PDF Debugger app next to the field name (see > > screenshot: https://i.imgur.com/gCHvVRx.png), but I looked everywhere in > > the properties of the PDField and PDAnnotationWidget and can't find them > > there. Any pointers will be much appreciated! > > > > Regards, Gilad. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >