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

Reply via email to