Re: Problem finding an AcroForm field

2024-05-02 Thread sahy...@fileaffairs.de
this will not work in this case as you already found. To get a list of possible values to switch the checkbox to the "ON" state you can use checkbox.getOnValues() BR Maruan Am Donnerstag, dem 02.05.2024 um 16:20 +0200 schrieb Ulf Dittmer: > Thanks, I will give that a try. So far, I

Re: Problem finding an AcroForm field

2024-05-02 Thread Ulf Dittmer
Thanks, I will give that a try. So far, I had used the code from the SetField example, which does this (and failed in this case): PDCheckBox checkbox = (PDCheckBox) field; if (value.isEmpty()) { checkbox.unCheck();

Re: Problem finding an AcroForm field

2024-05-02 Thread sahy...@fileaffairs.de
Am Donnerstag, dem 02.05.2024 um 12:56 +0200 schrieb Ulf Dittmer: > Oh, so the PDF is sort of broken? The doc info says it was created > using > Adobe's PDF library using Adobe InDesign :-) > Hi, you can use it like this: PDCheckBox field = (PDCheckBox)

Re: Problem finding an AcroForm field

2024-05-02 Thread Ulf Dittmer
Oh, so the PDF is sort of broken? The doc info says it was created using Adobe's PDF library using Adobe InDesign :-) Ulf On Thu, May 2, 2024 at 12:51 PM Tilman Hausherr wrote: > It's a radio button but without the radio flag?! > > Tilman > > On 02.05.2024 12:42, Ulf Dittmer wrote: > > Yes,

Re: Problem finding an AcroForm field

2024-05-02 Thread Tilman Hausherr
It's a radio button but without the radio flag?! Tilman On 02.05.2024 12:42, Ulf Dittmer wrote: Yes, that's the one for the "pro Stunde" option. But the one for the "pro Monat" option is missing. They're both connected, in that checking one manually will uncheck the other. But setting *any*

Re: Problem finding an AcroForm field

2024-05-02 Thread Ulf Dittmer
Yes, that's the one for the "pro Stunde" option. But the one for the "pro Monat" option is missing. They're both connected, in that checking one manually will uncheck the other. But setting *any* value programmatically only causes the first one to be set. Ulf On Thu, May 2, 2024 at 12:38 PM

Re: Problem finding an AcroForm field

2024-05-02 Thread sahy...@fileaffairs.de
That's chbx_46_Arbeitsentgelt BR Maruan Am Donnerstag, dem 02.05.2024 um 12:15 +0200 schrieb Ulf Dittmer: > Sorry, I didn't realize that. It's a form from a German government > agency, > and can be found at > >

Re: Problem finding an AcroForm field

2024-05-02 Thread Ulf Dittmer
Sorry, I didn't realize that. It's a form from a German government agency, and can be found at https://www.arbeitsagentur.de/datei/erklaerung-zum-beschaeftigungsverhaeltnis_ba047549.pdf Ulf On Thu, May 2, 2024 at 12:05 PM sahy...@fileaffairs.de < sahy...@fileaffairs.de> wrote: > Hi, > > can

Re: Problem finding an AcroForm field

2024-05-02 Thread sahy...@fileaffairs.de
Hi, can you upload the PDF in question to a public location to take a view. Attachments won't work for the mailing list. BR Maruan Am Donnerstag, dem 02.05.2024 um 12:01 +0200 schrieb Ulf Dittmer: > Hi- > > I'm running the PrintFields example code >

Problem finding an AcroForm field

2024-05-02 Thread Ulf Dittmer
Hi- I'm running the PrintFields example code ( https://svn.apache.org/repos/asf/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/PrintFields.java) to find all the form field names for a PDF, but it's missing a checkbox that I'd need to set. The checkbox in question